Clean up postgres compose
This commit is contained in:
parent
b7f54f8dc0
commit
8b39e5912b
1 changed files with 2 additions and 6 deletions
|
@ -1,10 +1,8 @@
|
|||
[services]
|
||||
|
||||
[services.postgres]
|
||||
container_name = "postgres"
|
||||
image = "postgres:16"
|
||||
environment = ["TZ=Europe/Helsinki", "POSTGRES_PASSWORD=12345"]
|
||||
ports = ["5432:5432"]
|
||||
environment = ["TZ=Europe/Helsinki"]
|
||||
ports = ["127.0.0.1:5432:5432"]
|
||||
networks = ["postgres"]
|
||||
volumes = [
|
||||
"/docker/postgres:/var/lib/postgresql/data",
|
||||
|
@ -12,7 +10,5 @@ volumes = [
|
|||
]
|
||||
restart = "unless-stopped"
|
||||
|
||||
[networks]
|
||||
|
||||
[networks.postgres]
|
||||
external = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue