feature(compose): ajouter restart policy et TODOs

This commit is contained in:
Victor Lacasse-Beaudoin 2024-09-23 21:54:58 -04:00
parent 4e4f52a8bf
commit 17810d9001

View file

@ -4,6 +4,7 @@ services:
environment:
POSTGRES_USER: 'bottin'
POSTGRES_PASSWORD: 'bottin'
restart: 'unless-stopped'
bottin_api:
depends_on:
@ -17,6 +18,7 @@ services:
BOTTIN_SERVER_DB_PASSWORD: 'bottin'
BOTTIN_SERVER_DB_HOST: 'bottin_db'
restart: 'unless-stopped'
#command: ['bottin', 'server', 'api']
command: ['cat', '/msg']
bottinagenda_db:
@ -24,10 +26,12 @@ services:
environment:
POSTGRES_USER: 'bottinagenda'
POSTGRES_PASSWORD: 'bottinagenda'
restart: 'unless-stopped'
bottinagenda_api:
depends_on:
- 'bottinagenda_db'
- 'bottin_api'
image: 'git.agecem.com/bottin/bottinagenda:acceptance'
build:
context: '../../../'
@ -36,6 +40,9 @@ services:
BOTTINAGENDA_SERVER_DB_USER: 'bottinagenda'
BOTTINAGENDA_SERVER_DB_PASSWORD: 'bottinagenda'
BOTTINAGENDA_SERVER_DB_HOST: 'bottinagenda_db'
#BOTTINAGENDA_BOTTIN_HOST?
BOTTINAGENDA_BOTTIN_HOST: 'bottin_api'
restart: 'unless-stopped'
#command: ['bottinagenda', 'server', 'api']
command: ['cat', '/msg']
#TODO bottinagenda_test: