compose: ajouter agendas-full avec services db et ui #4

Merged
vlbeaudoin merged 1 commit from vlbeaudoin/compose/full into main 2024-12-31 19:53:07 -05:00 AGit
3 changed files with 30 additions and 16 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.env
.swp

View file

@ -1,16 +0,0 @@
name: 'agendas-db'
services:
db:
image: 'postgres:16'
environment:
POSTGRES_USER: "${DB_USER:?}"
POSTGRES_PASSWORD: "${DB_PASSWORD:?}"
POSTGRES_DATABASE: "${DB_DATABASE:?}"
restart: 'unless-stopped'
ports:
- '5432:5432'
volumes:
- 'db-data:/var/lib/postgresql/data/'
- '/etc/localtime:/etc/localtime:ro'
volumes:
db-data:

View file

@ -0,0 +1,29 @@
name: 'agendas-full'
services:
db:
image: 'postgres:16'
environment:
POSTGRES_USER: "${DB_USER:?}"
POSTGRES_PASSWORD: "${DB_PASSWORD:?}"
POSTGRES_DATABASE: "${DB_DATABASE:?}"
restart: 'unless-stopped'
volumes:
- 'db-data:/var/lib/postgresql/data/'
- '/etc/localtime:/etc/localtime:ro'
ui:
depends_on:
- 'db'
image: 'git.agecem.com/bottin/agendas:latest'
build:
context: '../../../'
dockerfile: './deployments/docker/agendas/Dockerfile'
restart: 'unless-stopped'
ports:
- '3333:3333'
volumes:
- 'ui-config:/etc/agendas/'
command: ['agendas', '--config', '/etc/agendas/cfg.yaml']
volumes:
db-data:
ui-config:
external: true