Clean up postgres compose
This commit is contained in:
parent
c1ff9d997b
commit
ee97d8a590
|
@ -1,10 +1,8 @@
|
||||||
[services]
|
|
||||||
|
|
||||||
[services.postgres]
|
[services.postgres]
|
||||||
container_name = "postgres"
|
container_name = "postgres"
|
||||||
image = "postgres:16"
|
image = "postgres:16"
|
||||||
environment = ["TZ=Europe/Helsinki", "POSTGRES_PASSWORD=12345"]
|
environment = ["TZ=Europe/Helsinki"]
|
||||||
ports = ["5432:5432"]
|
ports = ["127.0.0.1:5432:5432"]
|
||||||
networks = ["postgres"]
|
networks = ["postgres"]
|
||||||
volumes = [
|
volumes = [
|
||||||
"/docker/postgres:/var/lib/postgresql/data",
|
"/docker/postgres:/var/lib/postgresql/data",
|
||||||
|
@ -12,7 +10,5 @@ volumes = [
|
||||||
]
|
]
|
||||||
restart = "unless-stopped"
|
restart = "unless-stopped"
|
||||||
|
|
||||||
[networks]
|
|
||||||
|
|
||||||
[networks.postgres]
|
[networks.postgres]
|
||||||
external = true
|
external = true
|
||||||
|
|
Loading…
Reference in a new issue