77 lines
2.1 KiB
YAML
77 lines
2.1 KiB
YAML
services:
|
|
|
|
bottin_db:
|
|
image: 'docker.io/library/postgres:14.8'
|
|
environment:
|
|
POSTGRES_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
|
|
POSTGRES_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
|
|
POSTGRES_USER: "${BOTTIN_POSTGRES_USER}"
|
|
volumes:
|
|
- 'bottin_db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
bottin_api:
|
|
depends_on:
|
|
- 'bottin_db'
|
|
build: './bottin'
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
ports:
|
|
- '1312:1312'
|
|
volumes:
|
|
- 'bottin_api-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'api']
|
|
|
|
bottin_web:
|
|
depends_on:
|
|
- 'bottin_api'
|
|
build: './bottin'
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
ports:
|
|
- '2312:2312'
|
|
volumes:
|
|
- 'bottin_web-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/web.yaml', 'web']
|
|
|
|
bottin_agenda_db:
|
|
image: 'docker.io/library/postgres:15.4'
|
|
environment:
|
|
POSTGRES_DATABASE: "${BOTTINAGENDA_POSTGRES_DATABASE}"
|
|
POSTGRES_PASSWORD: "${BOTTINAGENDA_POSTGRES_PASSWORD}"
|
|
POSTGRES_USER: "${BOTTINAGENDA_POSTGRES_USER}"
|
|
volumes:
|
|
- 'bottin-agenda_db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
bottin_agenda_api:
|
|
depends_on:
|
|
- 'bottin_agenda_db'
|
|
build: './bottin-agenda'
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
|
ports:
|
|
- '1313:1313'
|
|
volumes:
|
|
- 'bottin-agenda_api-config:/etc/bottin-agenda'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-agenda', '--config', '/etc/bottin-agenda/api.yaml', 'api']
|
|
|
|
bottin_agenda_web:
|
|
depends_on:
|
|
- 'bottin_agenda_api'
|
|
build: './bottin-agenda'
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
|
ports:
|
|
- '2313:2313'
|
|
volumes:
|
|
- 'bottin-agenda_web-config:/etc/bottin-agenda'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-agenda', '--config', '/etc/bottin-agenda/web.yaml', 'web']
|
|
|
|
volumes:
|
|
bottin_db-data:
|
|
bottin_api-config:
|
|
bottin_web-config:
|
|
bottin-agenda_db-data:
|
|
bottin-agenda_api-config:
|
|
bottin-agenda_web-config:
|