2024-03-25 14:34:59 +01:00
|
|
|
---
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|
2021-05-17 14:18:10 +02:00
|
|
|
name: ${POSTGRES_VOLUME_NAME:-postgres}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
2021-05-17 14:18:10 +02:00
|
|
|
container_name: ${POSTGRES_CONTAINER_NAME:-postgres}
|
2022-02-22 15:55:18 +01:00
|
|
|
image: ${POSTGRES_IMAGE:-postgres:14.2-alpine}
|
2020-05-15 23:34:50 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
2021-05-17 14:18:10 +02:00
|
|
|
POSTGRES_USER: ${POSTGRES_USER:?err}
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?err}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:?err}
|
2021-11-23 22:06:30 +01:00
|
|
|
PUID: ${POSTGRES_PUID:-1000}
|
|
|
|
PGID: ${POSTGRES_PGID:-1000}
|
2020-05-15 23:34:50 +02:00
|
|
|
volumes:
|
|
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|