58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
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'
|
|
environment:
|
|
BOTTINAG_API_KEY: "${BOTTINAG_API_KEY}"
|
|
BOTTINAG_BOTTIN_API_KEY: "${BOTTINAG_BOTTIN_API_KEY}"
|
|
BOTTINAG_DB_DATABASE: "${BOTTINAG_POSTGRES_DATABASE}"
|
|
BOTTINAG_DB_PASSWORD: "${BOTTINAG_POSTGRES_PASSWORD}"
|
|
BOTTINAG_DB_USER: "${BOTTINAG_POSTGRES_USER}"
|
|
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'
|
|
environment:
|
|
BOTTINAG_WEB_API_KEY: "${BOTTINAG_API_KEY}"
|
|
BOTTINAG_WEB_PASSWORD: "${BOTTINAG_WEB_PASSWORD}"
|
|
BOTTINAG_WEB_USER: "${BOTTINAG_WEB_USER}"
|
|
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:
|