bottin/docker-compose.yaml
Victor Lacasse-Beaudoin eb1982898c rework: config and cmd
Renamed `web` command to `server ui` (web is still an alias to ui)

Completely changed the config options and flags

Usage of PersistentFlags now allow clearer `--help`

BREAKING: cmd modified
BREAKING: config overhauled
BREAKING: Bump API to v8
2024-07-15 16:52:04 -04:00

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: