30 lines
738 B
YAML
30 lines
738 B
YAML
|
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
|