agendas/deployments/compose/full/compose.yaml

31 lines
781 B
YAML
Raw Permalink Normal View History

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/'
- '/etc/localtime:/etc/localtime:ro'
command: ['agendas', '--config', '/etc/agendas/cfg.yaml']
volumes:
db-data:
ui-config:
external: true