50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
services:
|
|
|
|
db:
|
|
image: 'docker.io/library/postgres:16'
|
|
environment:
|
|
POSTGRES_DATABASE: "${BOTTIN_SERVER_API_DB_DATABASE:?}"
|
|
POSTGRES_PASSWORD: "${BOTTIN_SERVER_API_DB_PASSWORD:?}"
|
|
POSTGRES_USER: "${BOTTIN_SERVER_API_DB_USER:?}"
|
|
volumes:
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
restart: 'unless-stopped'
|
|
|
|
api:
|
|
depends_on:
|
|
- db
|
|
build: .
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
env_file: '.env'
|
|
ports:
|
|
- '1312:1312'
|
|
volumes:
|
|
- 'api-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'server', 'api']
|
|
|
|
ui:
|
|
depends_on:
|
|
- api
|
|
build: .
|
|
image: 'git.agecem.com/agecem/bottin:latest'
|
|
env_file: '.env'
|
|
ports:
|
|
- '2312:2312'
|
|
volumes:
|
|
- 'ui-config:/etc/bottin'
|
|
restart: 'unless-stopped'
|
|
command: ['bottin', '--config', '/etc/bottin/ui.yaml', 'server', 'ui']
|
|
|
|
# adminer:
|
|
# image: adminer
|
|
# restart: always
|
|
# ports:
|
|
# - 8088:8080
|
|
# depends_on:
|
|
# - db
|
|
|
|
volumes:
|
|
db-data:
|
|
api-config:
|
|
ui-config:
|