2024-02-24 00:39:27 +02:00
|
|
|
[volumes]
|
|
|
|
data = {}
|
|
|
|
|
2022-02-26 13:25:54 +02:00
|
|
|
[services.postgres]
|
|
|
|
container_name = "postgres"
|
2023-12-29 19:29:56 +02:00
|
|
|
image = "postgres:16"
|
2024-02-23 20:17:30 +02:00
|
|
|
environment = ["TZ=Europe/Helsinki"]
|
|
|
|
ports = ["127.0.0.1:5432:5432"]
|
2022-02-26 13:25:54 +02:00
|
|
|
networks = ["postgres"]
|
|
|
|
volumes = [
|
2024-02-24 00:39:27 +02:00
|
|
|
"data:/var/lib/postgresql/data",
|
2022-02-26 13:25:54 +02:00
|
|
|
"/etc/localtime:/etc/localtime:ro",
|
|
|
|
]
|
|
|
|
restart = "unless-stopped"
|
|
|
|
|
|
|
|
[networks.postgres]
|
|
|
|
external = true
|