102 lines
3.1 KiB
YAML
102 lines
3.1 KiB
YAML
services:
|
|
|
|
bottin_db:
|
|
image: 'docker.io/library/postgres:14.8'
|
|
environment:
|
|
POSTGRES_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
|
|
POSTGRES_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
|
|
POSTGRES_USER: "${BOTTIN_POSTGRES_USER}"
|
|
volumes:
|
|
- 'bottin_db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
bottin_api:
|
|
depends_on:
|
|
- 'bottin_db'
|
|
build: './bottin'
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
environment:
|
|
BOTTIN_DB_HOST: 'bottin_db'
|
|
BOTTIN_DB_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
|
|
BOTTIN_DB_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
|
|
BOTTIN_DB_USER: "${BOTTIN_POSTGRES_USER}"
|
|
BOTTIN_API_KEY: "${BOTTIN_API_KEY}"
|
|
ports:
|
|
- '1312:1312'
|
|
volumes:
|
|
- 'bottin_api-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'api']
|
|
|
|
bottin_web:
|
|
depends_on:
|
|
- 'bottin_api'
|
|
build: './bottin'
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
environment:
|
|
BOTTIN_WEB_API_HOST: 'bottin_api'
|
|
BOTTIN_WEB_API_KEY: "${BOTTIN_API_KEY}"
|
|
BOTTIN_WEB_PASSWORD: "${BOTTIN_WEB_PASSWORD}"
|
|
BOTTIN_WEB_USER: "${BOTTIN_WEB_USER}"
|
|
ports:
|
|
- '2312:2312'
|
|
volumes:
|
|
- 'bottin_web-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/web.yaml', 'web']
|
|
|
|
bottin_ag_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:
|
|
- 'bottin-ag_db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
bottin_ag_api:
|
|
depends_on:
|
|
- 'bottin_ag_db'
|
|
- 'bottin_api'
|
|
build: './bottin-ag'
|
|
image: 'git.agecem.com/agecem/bottin-ag:latest'
|
|
environment:
|
|
BOTTINAG_API_KEY: "${BOTTINAG_API_KEY}"
|
|
BOTTINAG_BOTTIN_API_KEY: "${BOTTIN_API_KEY}"
|
|
BOTTINAG_BOTTIN_API_HOST: 'bottin_api'
|
|
BOTTINAG_DB_DATABASE: "${BOTTINAG_POSTGRES_DATABASE}"
|
|
BOTTINAG_DB_HOST: 'bottin_ag_db'
|
|
BOTTINAG_DB_PASSWORD: "${BOTTINAG_POSTGRES_PASSWORD}"
|
|
BOTTINAG_DB_USER: "${BOTTINAG_POSTGRES_USER}"
|
|
ports:
|
|
- '3182:3182'
|
|
volumes:
|
|
- 'bottin-ag_api-config:/etc/bottin-ag'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-ag', '--config', '/etc/bottin-ag/api.yaml', 'api']
|
|
|
|
bottin_ag_web:
|
|
depends_on:
|
|
- 'bottin_ag_api'
|
|
build: './bottin-ag'
|
|
image: 'git.agecem.com/agecem/bottin-ag:latest'
|
|
environment:
|
|
BOTTINAG_WEB_API_HOST: 'bottin_ag_api'
|
|
BOTTINAG_WEB_API_KEY: "${BOTTINAG_API_KEY}"
|
|
BOTTINAG_WEB_PASSWORD: "${BOTTINAG_WEB_PASSWORD}"
|
|
BOTTINAG_WEB_USER: "${BOTTINAG_WEB_USER}"
|
|
ports:
|
|
- '3183:3183'
|
|
volumes:
|
|
- 'bottin-ag_web-config:/etc/bottin-ag'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin-ag', '--config', '/etc/bottin-ag/web.yaml', 'web']
|
|
|
|
volumes:
|
|
bottin_db-data:
|
|
bottin_api-config:
|
|
bottin_web-config:
|
|
bottin-ag_db-data:
|
|
bottin-ag_api-config:
|
|
bottin-ag_web-config:
|