45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
custodial:
|
|
build: .
|
|
command: build/custodial --env=dev
|
|
ports:
|
|
- "28080:8080"
|
|
volumes:
|
|
- custodial-db-data:/mnt/data:rw
|
|
depends_on:
|
|
- postgres
|
|
env_file:
|
|
- dev.env
|
|
environment:
|
|
- DB_CONNECTION_SETTINGS=host=postgres port=5432 user=user password=user dbname=custodial sslmode=disable
|
|
|
|
agent:
|
|
build: .
|
|
command: build/agent --env=dev
|
|
volumes:
|
|
- custodial-db-data:/mnt/data:rw
|
|
depends_on:
|
|
- postgres
|
|
env_file:
|
|
- dev.env
|
|
environment:
|
|
- WEBHOOK_URL=http://custodial:8080/utils/echo
|
|
- DB_CONNECTION_SETTINGS=host=postgres port=5432 user=user password=user dbname=custodial sslmode=disable
|
|
|
|
postgres:
|
|
image: postgres:14.4-alpine
|
|
ports:
|
|
- "5435:5432"
|
|
volumes:
|
|
- custodial-postgres-data:/var/lib/postgresql/data:rw
|
|
environment:
|
|
- POSTGRES_PASSWORD=user
|
|
- POSTGRES_USER=user
|
|
- POSTGRES_DB=custodial
|
|
|
|
volumes:
|
|
custodial-db-data:
|
|
custodial-postgres-data:
|