16 lines
382 B
YAML
16 lines
382 B
YAML
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:
|