vps/roles/postgres/templates/docker-compose.yaml

11 lines
324 B
YAML

services:
postgres:
container_name: postgres
image: docker.io/library/postgres:16-alpine
restart: always
user: {{ users['postgres'] }}:{{ users['postgres'] }}
env_file: .env
ports:
- {{ ports['postgres'] }}:5432
volumes:
- {{ volumes['postgres_datadir'] }}:/var/lib/postgresql/data