bottin/docker-compose.yaml

51 lines
1.1 KiB
YAML
Raw 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:
POSTGRES_DATABASE: "${BOTTIN_SERVER_API_DB_DATABASE:?}"
POSTGRES_PASSWORD: "${BOTTIN_SERVER_API_DB_PASSWORD:?}"
POSTGRES_USER: "${BOTTIN_SERVER_API_DB_USER:?}"
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'
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
2023-05-25 02:21:09 -04:00
volumes:
db-data:
api-config:
ui-config: