bottin/docker-compose.yaml

59 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-05-25 02:21:09 -04:00
services:
db:
2024-06-06 01:40:56 -04:00
image: 'docker.io/library/postgres:16'
2023-05-25 02:21:09 -04:00
environment:
2024-09-03 16:42:25 -04:00
POSTGRES_DATABASE: "${BOTTIN_SERVER_API_DB_DATABASE:-bottin}"
POSTGRES_PASSWORD: "${BOTTIN_SERVER_API_DB_PASSWORD:-bottin}"
POSTGRES_USER: "${BOTTIN_SERVER_API_DB_USER:-bottin}"
2023-05-25 02:21:09 -04:00
volumes:
- 'db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
api:
depends_on:
- db
build: .
image: 'git.agecem.com/agecem/bottin:latest'
2024-09-03 16:42:25 -04:00
env:
BOTTIN_SERVER_API_DB_DATABASE: "${BOTTIN_SERVER_API_DB_DATABASE:-bottin}"
BOTTIN_SERVER_API_DB_HOST: "${BOTTIN_SERVER_API_DB_HOST:-db}"
BOTTIN_SERVER_API_DB_PASSWORD: "${BOTTIN_SERVER_API_DB_PASSWORD:-bottin}"
BOTTIN_SERVER_API_DB_USER: "${BOTTIN_SERVER_API_DB_USER:-bottin}"
#BOTTIN_SERVER_API_HOST: "${BOTTIN_SERVER_API_HOST:}"
#BOTTIN_SERVER_API_KEY: "${BOTTIN_SERVER_API_KEY
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'
2024-09-03 16:42:25 -04:00
env:
BOTTIN_WEB_PASSWORD: "${BOTTIN_WEB_PASSWORD:-bottin}"
BOTTIN_WEB_USER: "${BOTTIN_WEB_USER:-bottin}"
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
2023-05-25 02:21:09 -04:00
volumes:
db-data:
api-config:
ui-config: