bottin-ag/docker-compose.yaml

49 lines
1 KiB
YAML
Raw Permalink Normal View History

2023-09-15 13:14:43 -04:00
services:
db:
image: 'docker.io/library/postgres:15.4'
environment:
POSTGRES_DATABASE: "${BOTTINAG_POSTGRES_DATABASE}"
POSTGRES_PASSWORD: "${BOTTINAG_POSTGRES_PASSWORD}"
POSTGRES_USER: "${BOTTINAG_POSTGRES_USER}"
volumes:
- 'db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
api:
depends_on:
- db
build: .
image: 'git.agecem.com/agecem/bottin-ag:latest'
ports:
- '3182:3182'
volumes:
- 'api-config:/etc/bottin-ag'
restart: 'unless-stopped'
command: ['bottin-ag', '--config', '/etc/bottin-ag/api.yaml', 'api']
web:
depends_on:
- api
build: .
image: 'git.agecem.com/agecem/bottin-ag:latest'
ports:
- '3183:3183'
volumes:
- 'web-config:/etc/bottin-ag'
restart: 'unless-stopped'
command: ['bottin-ag', '--config', '/etc/bottin-ag/web.yaml', 'web']
#adminer:
# image: adminer
# restart: always
# ports:
# - 8088:8080
# depends_on:
# - db
volumes:
db-data:
api-config:
web-config: