waffle/docker-compose.yml
2023-08-08 23:15:39 +03:00

24 lines
623 B
YAML

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: .
ports:
- "5002:3000"
environment:
- PGUSER=waffle
- PGHOST=waffle-postgres
- PGPASSWORD=supersecretpassword11
- PGDATABASE=waffle
- AVATAR_UPLOADS_DIR=/var/lib/waffle/uploads/avatar
- ATTACHMENT_UPLOADS_DIR=/var/lib/waffle/uploads/attachment
- NODE_ENV=production
depends_on:
- waffle-postgres