dotfiles/docker/postgres/docker-compose.toml

18 lines
335 B
TOML
Raw Normal View History

[volumes]
data = {}
[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"]
networks = ["postgres"]
volumes = [
"data:/var/lib/postgresql/data",
"/etc/localtime:/etc/localtime:ro",
]
restart = "unless-stopped"
[networks.postgres]
external = true