30 lines
551 B
YAML
30 lines
551 B
YAML
|
|
services:
|
|
backend:
|
|
build: .
|
|
image: backend:latest
|
|
container_name: sumoc-backend
|
|
ports:
|
|
- "8080:8080"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:15
|
|
container_name: sumoc-postgres
|
|
environment:
|
|
POSTGRES_DB: sumoc
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: admin
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|