move the port definition in docker-compose.override.yml

This commit is contained in:
Kévin Dunglas
2020-11-17 09:40:40 +01:00
committed by Fabien Potencier
parent 6a91adfe62
commit c76a55f0e4
+22 -16
View File
@@ -20,22 +20,28 @@
"\tapk del .pgsql-deps"
],
"docker-compose": {
"services": [
"db:",
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
" environment:",
" POSTGRES_DB: ${POSTGRES_DB:-app}",
" # You should definitely change the password in production",
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
" volumes:",
" - db-data:/var/lib/postgresql/data:rw",
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
" # - ./docker/db/data:/var/lib/postgresql/data:rw",
" # To expose the port on the host",
" # ports:",
" # - \"5432\""
],
"docker-compose.yml": {
"services": [
"db:",
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
" environment:",
" POSTGRES_DB: ${POSTGRES_DB:-app}",
" # You should definitely change the password in production",
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
" volumes:",
" - db-data:/var/lib/postgresql/data:rw",
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
]
},
"docker-compose.override.yml": {
"services": [
"db:",
" ports:",
" - \"5432\""
]
},
"volumes": ["db-data:"]
}
}