2023-05-29 17:58:23 -04:00
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
2023-12-28 14:13:30 -05:00
|
|
|
image: 'docker.io/library/postgres:16.1'
|
2023-05-29 17:58:23 -04:00
|
|
|
environment:
|
2024-09-16 15:01:32 -04:00
|
|
|
POSTGRES_DATABASE: "${BOTTINAGENDA_DB_DATABASE:?}"
|
|
|
|
POSTGRES_PASSWORD: "${BOTTINAGENDA_DB_PASSWORD:?}"
|
|
|
|
POSTGRES_USER: "${BOTTINAGENDA_DB_USER:?}"
|
2023-05-29 17:58:23 -04:00
|
|
|
volumes:
|
|
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
|
|
restart: 'unless-stopped'
|
|
|
|
|
|
|
|
api:
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
build: .
|
2024-09-16 15:01:32 -04:00
|
|
|
env_file: '.env'
|
2023-05-30 19:03:28 -04:00
|
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
2023-05-29 17:58:23 -04:00
|
|
|
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: .
|
2024-09-16 15:01:32 -04:00
|
|
|
env_file: '.env'
|
2023-05-30 19:03:28 -04:00
|
|
|
image: 'git.agecem.com/agecem/bottin-agenda:latest'
|
2023-05-29 17:58:23 -04:00
|
|
|
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:
|