2023-05-25 02:21:09 -04:00
|
|
|
services:
|
|
|
|
|
2023-05-25 19:22:46 -04:00
|
|
|
db:
|
2023-05-25 23:03:28 -04:00
|
|
|
image: 'docker.io/library/postgres:14.8'
|
2023-05-25 02:21:09 -04:00
|
|
|
environment:
|
|
|
|
POSTGRES_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
|
|
|
|
POSTGRES_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
|
|
|
|
POSTGRES_USER: "${BOTTIN_POSTGRES_USER}"
|
|
|
|
volumes:
|
2023-05-25 23:03:28 -04:00
|
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
|
|
restart: 'unless-stopped'
|
2023-05-25 19:22:46 -04:00
|
|
|
|
2023-05-25 23:03:28 -04:00
|
|
|
api:
|
2023-05-25 19:22:46 -04:00
|
|
|
depends_on:
|
|
|
|
- db
|
2023-05-25 23:03:28 -04:00
|
|
|
build: .
|
|
|
|
image: 'git.agecem.com/agecem/bottin/v4:latest'
|
|
|
|
ports:
|
|
|
|
- '1312:1312'
|
|
|
|
volumes:
|
|
|
|
- 'api-config:/etc/bottin'
|
|
|
|
restart: 'unless-stopped'
|
|
|
|
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'api']
|
|
|
|
|
|
|
|
web:
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
build: .
|
|
|
|
image: 'git.agecem.com/agecem/bottin/v4:latest'
|
|
|
|
ports:
|
|
|
|
- '2312:2312'
|
|
|
|
volumes:
|
|
|
|
- 'web-config:/etc/bottin'
|
|
|
|
restart: 'unless-stopped'
|
2023-05-25 23:19:35 -04:00
|
|
|
command: ['bottin', '--config', '/etc/bottin/web.yaml', 'web']
|
2023-05-25 23:03:28 -04:00
|
|
|
|
|
|
|
# adminer:
|
|
|
|
# image: adminer
|
|
|
|
# restart: always
|
|
|
|
# ports:
|
|
|
|
# - 8088:8080
|
|
|
|
# depends_on:
|
|
|
|
# - db
|
2023-05-25 02:21:09 -04:00
|
|
|
|
|
|
|
volumes:
|
2023-05-25 23:03:28 -04:00
|
|
|
db-data:
|
|
|
|
api-config:
|
|
|
|
web-config:
|