From 0a7b0745084712ecf5c91337890e168f4fe5d04a Mon Sep 17 00:00:00 2001 From: Floatingghost Date: Wed, 29 May 2024 06:07:35 +0100 Subject: [PATCH] bind instance and uploads volumes --- Dockerfile | 4 ++++ docker-compose.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9b3f2d31c..84f9d474f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,4 +68,8 @@ ADD docker-entrypoint.sh $HOME/docker-entrypoint.sh USER $UNAME +VOLUME uploads /opt/akkoma/uploads +VOLUME instance /opt/akkoma/instance +VOLUME config /etc/akkoma/config.exs + CMD ["/opt/akkoma/docker-entrypoint.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index 71e8f43d7..953cc6920 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,6 +36,8 @@ services: ] volumes: - ./config/prod.secret.exs:/etc/akkoma/config.exs + - ./uploads:/opt/akkoma/uploads + - ./instance:/opt/akkoma/instance # Copy this into docker-compose.override.yml and uncomment there if you want to use a reverse proxy #proxy: