Add docker-compose for bottin and bottin-ag
This commit is contained in:
parent
55978456df
commit
d62ac37071
1 changed files with 77 additions and 0 deletions
77
docker-compose.yaml
Normal file
77
docker-compose.yaml
Normal file
|
@ -0,0 +1,77 @@
|
|||
services:
|
||||
|
||||
bottin_db:
|
||||
image: 'docker.io/library/postgres:14.8'
|
||||
environment:
|
||||
POSTGRES_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
|
||||
POSTGRES_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
|
||||
POSTGRES_USER: "${BOTTIN_POSTGRES_USER}"
|
||||
volumes:
|
||||
- 'bottin_db-data:/var/lib/postgresql/data'
|
||||
restart: 'unless-stopped'
|
||||
|
||||
bottin_api:
|
||||
depends_on:
|
||||
- 'bottin_db'
|
||||
build: './bottin'
|
||||
image: 'git.agecem.com/agecem/bottin:latest'
|
||||
ports:
|
||||
- '1312:1312'
|
||||
volumes:
|
||||
- 'bottin_api-config:/etc/bottin'
|
||||
restart: 'unless-stopped'
|
||||
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'api']
|
||||
|
||||
bottin_web:
|
||||
depends_on:
|
||||
- 'bottin_api'
|
||||
build: './bottin'
|
||||
image: 'git.agecem.com/agecem/bottin:latest'
|
||||
ports:
|
||||
- '2312:2312'
|
||||
volumes:
|
||||
- 'bottin_web-config:/etc/bottin'
|
||||
restart: 'unless-stopped'
|
||||
command: ['bottin', '--config', '/etc/bottin/web.yaml', 'web']
|
||||
|
||||
bottin_ag_db:
|
||||
image: 'docker.io/library/postgres:15.4'
|
||||
environment:
|
||||
POSTGRES_DATABASE: "${BOTTINAG_POSTGRES_DATABASE}"
|
||||
POSTGRES_PASSWORD: "${BOTTINAG_POSTGRES_PASSWORD}"
|
||||
POSTGRES_USER: "${BOTTINAG_POSTGRES_USER}"
|
||||
volumes:
|
||||
- 'bottin-ag_db-data:/var/lib/postgresql/data'
|
||||
restart: 'unless-stopped'
|
||||
|
||||
bottin_ag_api:
|
||||
depends_on:
|
||||
- 'bottin_ag_db'
|
||||
build: './bottin-ag'
|
||||
image: 'git.agecem.com/agecem/bottin-ag:latest'
|
||||
ports:
|
||||
- '3182:3182'
|
||||
volumes:
|
||||
- 'bottin-ag_api-config:/etc/bottin-ag'
|
||||
restart: 'unless-stopped'
|
||||
command: ['bottin-ag', '--config', '/etc/bottin-ag/api.yaml', 'api']
|
||||
|
||||
bottin_ag_web:
|
||||
depends_on:
|
||||
- 'bottin_ag_api'
|
||||
build: './bottin-ag'
|
||||
image: 'git.agecem.com/agecem/bottin-ag:latest'
|
||||
ports:
|
||||
- '3183:3183'
|
||||
volumes:
|
||||
- 'bottin-ag_web-config:/etc/bottin-ag'
|
||||
restart: 'unless-stopped'
|
||||
command: ['bottin-ag', '--config', '/etc/bottin-ag/web.yaml', 'web']
|
||||
|
||||
volumes:
|
||||
bottin_db-data:
|
||||
bottin_api-config:
|
||||
bottin_web-config:
|
||||
bottin-ag_db-data:
|
||||
bottin-ag_api-config:
|
||||
bottin-ag_web-config:
|
Loading…
Reference in a new issue