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'
|
2024-02-14 14:49:58 -05:00
|
|
|
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}"
|
2023-09-15 13:14:43 -04:00
|
|
|
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'
|
2024-02-14 14:49:58 -05:00
|
|
|
environment:
|
|
|
|
BOTTINAG_WEB_API_KEY: "${BOTTINAG_API_KEY}"
|
|
|
|
BOTTINAG_WEB_PASSWORD: "${BOTTINAG_WEB_PASSWORD}"
|
|
|
|
BOTTINAG_WEB_USER: "${BOTTINAG_WEB_USER}"
|
2023-09-15 13:14:43 -04:00
|
|
|
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:
|