Initial commit

This commit is contained in:
Victor Lacasse-Beaudoin 2025-02-27 14:13:21 -05:00
commit 02947128bc
24 changed files with 1126 additions and 0 deletions

56
compose.yaml Normal file
View file

@ -0,0 +1,56 @@
services:
bottin-db:
image: 'postgres:16'
environment:
POSTGRES_USER: '${BOTTIN_SERVER_API_POSTGRES_USER:?Add to .env}'
POSTGRES_PASSWORD: '${BOTTIN_SERVER_API_POSTGRES_PASSWORD:?Add to .env}'
POSTGRES_DATABASE: '${BOTTIN_SERVER_API_POSTGRES_DATABASE:?Add to .env}'
volumes:
- 'bottin-db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
bottin-api:
depends_on:
- 'bottin-db'
image: 'git.agecem.com/bottin/bottin:latest'
env_file: '.env'
restart: 'unless-stopped'
command: ['bottin', 'server', 'api']
presences-db:
image: 'docker.io/library/postgres:16'
environment:
POSTGRES_DATABASE: "${PRESENCES_DB_DATABASE:?}"
POSTGRES_PASSWORD: "${PRESENCES_DB_PASSWORD:?}"
POSTGRES_USER: "${PRESENCES_DB_USERNAME:?}"
volumes:
- 'presences-db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
presences-ui:
depends_on:
- 'presences-db'
- 'bottin-api'
build: '.'
image: 'git.agecem.com/agecem/presences:latest'
env_file: '.env'
ports:
- '8080:8080'
volumes:
- 'presences-config:/etc/presences/'
restart: 'unless-stopped'
command: ['presences', '--config', '/etc/presences/config.yaml', 'server']
adminer:
depends_on:
- 'bottin-db'
- 'presences-db'
image: 'adminer:latest'
ports:
- '8088:8080'
restart: 'unless-stopped'
volumes:
bottin-db-data:
presences-config:
presences-db-data: