ansible-playbooks/peertube-server/templates/services/postgres.container.j2

18 lines
386 B
Text
Raw Permalink Normal View History

2025-02-05 21:18:32 +02:00
[Unit]
Requires=redis.service
After=redis.service
[Container]
ServiceName=postgres
ContainerName=postgres
2025-02-05 21:37:28 +02:00
EnvironmentFile={{ base_directory }}/{{ peertube.env_file }}
2025-02-05 21:18:32 +02:00
Image={{ postgres.image_name }}
Volume={{ postgres.postgres_directory }}:/var/lib/postgresql/data
Network=peertube.network
SecurityLabelType=postgres.process
[Service]
Restart=always
[Install]
WantedBy=default.target