42 lines
1,019 B
YAML
42 lines
1,019 B
YAML
services:
|
|
|
|
db:
|
|
image: 'docker.io/library/postgres:16.1'
|
|
environment:
|
|
POSTGRES_DATABASE: "${BOTTINAGENDA_DB_DATABASE:?}"
|
|
POSTGRES_PASSWORD: "${BOTTINAGENDA_DB_PASSWORD:?}"
|
|
POSTGRES_USER: "${BOTTINAGENDA_DB_USER:?}"
|
|
volumes:
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
api:
|
|
depends_on:
|
|
- db
|
|
build: .
|
|
env_file: '.env'
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
|
ports:
|
|
- '1313:1313'
|
|
volumes:
|
|
- 'api-config:/etc/bottin-agenda'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-agenda', '--config', '/etc/bottin-agenda/api.yaml', 'api']
|
|
|
|
web:
|
|
depends_on:
|
|
- api
|
|
build: .
|
|
env_file: '.env'
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
|
ports:
|
|
- '2313:2313'
|
|
volumes:
|
|
- 'web-config:/etc/bottin-agenda'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-agenda', '--config', '/etc/bottin-agenda/web.yaml', 'web']
|
|
|
|
volumes:
|
|
db-data:
|
|
api-config:
|
|
web-config:
|