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

12 lines
324 B
YAML
Raw Normal View History

2024-03-29 20:56:28 +01:00
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