bottin-agenda/docker-compose.yaml

51 lines
1.1 KiB
YAML
Raw Normal View History

2023-05-29 17:58:23 -04:00
services:
db:
image: 'docker.io/library/postgres:14.8'
environment:
POSTGRES_DATABASE: "${BOTTINAGENDA_POSTGRES_DATABASE}"
POSTGRES_PASSWORD: "${BOTTINAGENDA_POSTGRES_PASSWORD}"
POSTGRES_USER: "${BOTTINAGENDA_POSTGRES_USER}"
2023-06-03 20:16:41 -04:00
ports:
- '5433:5432'
2023-05-29 17:58:23 -04:00
volumes:
- 'db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
api:
depends_on:
- db
build: .
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: .
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']
# adminer:
# image: adminer
# restart: always
# ports:
# - 8088:8080
# depends_on:
# - db
volumes:
db-data:
api-config:
web-config: