36 lines
705 B
YAML
36 lines
705 B
YAML
services:
|
|
db:
|
|
image: docker.io/library/postgres:16
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
backend:
|
|
build: ./backend
|
|
restart: unless-stopped
|
|
environment:
|
|
DATABASE_URL: postgresql+psycopg2://postgres:postgres@db:5432/postgres
|
|
ports:
|
|
- "5000:5000"
|
|
depends_on:
|
|
- db
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
restart: unless-stopped
|
|
environment:
|
|
BACKEND_URL: http://backend:5000
|
|
ports:
|
|
- "5173:80"
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
postgres_data:
|