From b3a93a001139780a805e4506fcad2496364748ba Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 8 Aug 2023 21:38:17 +0300 Subject: [PATCH] docker uploads volume --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 63efe7e..a621607 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: - POSTGRES_PASSWORD=supersecretpassword11 waffle: build: . + volumes: + - ./tmp/uploads:/var/lib/waffle/uploads ports: - "5002:3000" environment: @@ -17,5 +19,7 @@ services: - PGHOST=waffle-postgres - PGPASSWORD=supersecretpassword11 - PGDATABASE=waffle + - AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads + - ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads depends_on: - waffle-postgres