46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
services:
|
|
postgres-control:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
POSTGRES_DB: pg_admin_control
|
|
POSTGRES_USER: pgadmin
|
|
POSTGRES_PASSWORD: pgadmin
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- ./infra/init/001-control.sql:/docker-entrypoint-initdb.d/001-control.sql:ro
|
|
- ./infra/init/002-seed-root.sql:/docker-entrypoint-initdb.d/002-seed-root.sql:ro
|
|
|
|
postgres-target:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
POSTGRES_DB: appdb
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./infra/init/010-target.sql:/docker-entrypoint-initdb.d/010-target.sql:ro
|
|
- ./docker/postgres/postgresql.log:/var/log/postgresql/postgresql.log
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
env_file:
|
|
- .env.example
|
|
depends_on:
|
|
- postgres-control
|
|
- postgres-target
|
|
ports:
|
|
- "4000:4000"
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: frontend/Dockerfile
|
|
depends_on:
|
|
- backend
|
|
ports:
|
|
- "8080:80"
|