2022-04-27 23:51:08 +03:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
waffle-postgres:
|
|
|
|
image: postgres
|
|
|
|
volumes:
|
|
|
|
- ./tmp/db:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=waffle
|
|
|
|
- POSTGRES_USER=waffle
|
|
|
|
- POSTGRES_PASSWORD=supersecretpassword11
|
|
|
|
waffle:
|
|
|
|
build: .
|
2023-08-08 21:38:17 +03:00
|
|
|
volumes:
|
2023-08-08 22:30:39 +03:00
|
|
|
- ./tmp/uploads:/var/lib/waffle
|
2022-04-27 23:51:08 +03:00
|
|
|
ports:
|
|
|
|
- "5002:3000"
|
|
|
|
environment:
|
|
|
|
- PGUSER=waffle
|
|
|
|
- PGHOST=waffle-postgres
|
|
|
|
- PGPASSWORD=supersecretpassword11
|
|
|
|
- PGDATABASE=waffle
|
2023-08-08 22:30:39 +03:00
|
|
|
- AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads/avatar
|
|
|
|
- ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads/attachment
|
2022-04-27 23:51:08 +03:00
|
|
|
depends_on:
|
2022-04-28 03:36:15 +03:00
|
|
|
- waffle-postgres
|