mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-01 03:20:29 +00:00
18 lines
335 B
TOML
18 lines
335 B
TOML
[volumes]
|
|
data = {}
|
|
|
|
[services.postgres]
|
|
container_name = "postgres"
|
|
image = "postgres:16"
|
|
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
|