1111
This commit is contained in:
45
docker-compose.yml
Normal file
45
docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user