docker uploads volume

This commit is contained in:
hippoz 2023-08-08 21:38:17 +03:00
parent deb57d26cc
commit b3a93a0011
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -10,6 +10,8 @@ services:
- POSTGRES_PASSWORD=supersecretpassword11 - POSTGRES_PASSWORD=supersecretpassword11
waffle: waffle:
build: . build: .
volumes:
- ./tmp/uploads:/var/lib/waffle/uploads
ports: ports:
- "5002:3000" - "5002:3000"
environment: environment:
@ -17,5 +19,7 @@ services:
- PGHOST=waffle-postgres - PGHOST=waffle-postgres
- PGPASSWORD=supersecretpassword11 - PGPASSWORD=supersecretpassword11
- PGDATABASE=waffle - PGDATABASE=waffle
- AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads
- ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads
depends_on: depends_on:
- waffle-postgres - waffle-postgres