bottinagenda/deployments/compose/bottinagenda-acceptance/compose.yaml

53 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-09-23 20:31:06 -04:00
services:
bottin_db:
image: 'postgres:16'
environment:
POSTGRES_USER: 'bottin'
POSTGRES_PASSWORD: 'bottin'
restart: 'unless-stopped'
2024-09-23 20:31:06 -04:00
bottin_api:
depends_on:
- 'bottin_db'
image: 'git.agecem.com/bottin/bottin:acceptance'
build:
context: '../../../external/bottin/'
dockerfile: './deployments/docker/bottin/Dockerfile'
environment:
BOTTIN_SERVER_API_POSTGRES_USER: 'bottin'
BOTTIN_SERVER_API_POSTGRES_PASSWORD: 'bottin'
BOTTIN_SERVER_API_POSTGRES_HOST: 'bottin_db'
2024-09-23 20:31:06 -04:00
restart: 'unless-stopped'
command: ['bottin', 'server', 'api']
2024-09-23 20:31:06 -04:00
bottinagenda_db:
image: 'postgres:16'
environment:
POSTGRES_USER: 'bottinagenda'
POSTGRES_PASSWORD: 'bottinagenda'
restart: 'unless-stopped'
2024-09-23 20:31:06 -04:00
bottinagenda_api:
depends_on:
- 'bottinagenda_db'
- 'bottin_api'
2024-09-23 20:31:06 -04:00
image: 'git.agecem.com/bottin/bottinagenda:acceptance'
build:
context: '../../../'
dockerfile: './deployments/docker/bottinagenda/Dockerfile'
environment:
BOTTINAGENDA_SERVER_API_POSTGRES_USER: 'bottinagenda'
BOTTINAGENDA_SERVER_API_POSTGRES_PASSWORD: 'bottinagenda'
BOTTINAGENDA_SERVER_API_POSTGRES_HOST: 'bottinagenda_db'
BOTTINAGENDA_BOTTIN_API_HOST: 'bottin_api'
command: ['bottinagenda', 'server', 'api']
test:
depends_on:
- 'bottinagenda_api'
image: 'git.agecem.com/bottin/bottinagenda:src'
build:
context: '../../../'
dockerfile: './deployments/docker/src/Dockerfile'
command: ['go', 'test', '-v', './pkg/bottinagenda/']