compose: ajouter agendas-full
avec services db et ui #4
3 changed files with 30 additions and 16 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.env
|
||||
.swp
|
||||
|
|
16
compose.yaml
16
compose.yaml
|
@ -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:
|
29
deployments/compose/full/compose.yaml
Normal file
29
deployments/compose/full/compose.yaml
Normal 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
|
Loading…
Reference in a new issue