31 lines
612 B
YAML
31 lines
612 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: budget-commun-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: budget
|
|
POSTGRES_USER: budget
|
|
POSTGRES_PASSWORD: budget
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
budget-commun:
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
container_name: budget-commun
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3456:3000"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=postgres://budget:budget@db:5432/budget
|
|
|
|
volumes:
|
|
pgdata:
|