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: . volumes: - ./tmp/uploads:/var/lib/waffle/uploads ports: - "5002:3000" environment: - PGUSER=waffle - 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