From 57fefea2c03106e968a05822634415d635db29df Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 31 Dec 2024 19:52:03 -0500 Subject: [PATCH] compose: ajouter `agendas-full` avec services db et ui --- .gitignore | 1 + compose.yaml | 16 --------------- deployments/compose/full/compose.yaml | 29 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 16 deletions(-) delete mode 100644 compose.yaml create mode 100644 deployments/compose/full/compose.yaml diff --git a/.gitignore b/.gitignore index 4c49bd7..19ace02 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .env +.swp diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index fd5c804..0000000 --- a/compose.yaml +++ /dev/null @@ -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: diff --git a/deployments/compose/full/compose.yaml b/deployments/compose/full/compose.yaml new file mode 100644 index 0000000..4b48853 --- /dev/null +++ b/deployments/compose/full/compose.yaml @@ -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