mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
move the port definition in docker-compose.override.yml
This commit is contained in:
committed by
Fabien Potencier
parent
6a91adfe62
commit
c76a55f0e4
@@ -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:"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user