vps/projects/postgres/compose.yaml.mako

13 lines
454 B
Text
Raw Normal View History

2024-10-14 17:38:10 +02:00
services:
postgres:
container_name: postgres
image: docker.io/library/postgres:16-alpine
network_mode: pasta:-a,${env['pasta']['postgres']['ipv4']},-a,${env['pasta']['postgres']['ipv6']}
restart: always
user: ${env['users']['postgres']}:${env['users']['postgres']}
env_file: .env.rendered
ports:
- ${env['ports']['postgres']}:5432
volumes:
- ${env['volumes']['postgres']['datadir']}:/var/lib/postgresql/data