chore(docker-compose): replace hardcoded password with env variable
This commit is contained in:
parent
acc8f119a2
commit
96617139b3
|
@ -16,7 +16,14 @@
|
||||||
"author": "https://shlink.io/",
|
"author": "https://shlink.io/",
|
||||||
"source": "https://github.com/shlinkio/shlink",
|
"source": "https://github.com/shlinkio/shlink",
|
||||||
"website": "https://shlink.io/",
|
"website": "https://shlink.io/",
|
||||||
"form_fields": [],
|
"form_fields": [
|
||||||
|
{
|
||||||
|
"type": "random",
|
||||||
|
"label": "Database password",
|
||||||
|
"min": 32,
|
||||||
|
"env_variable": "SHLINK_POSTGRES_PASSWORD"
|
||||||
|
}
|
||||||
|
],
|
||||||
"supported_architectures": [
|
"supported_architectures": [
|
||||||
"arm64",
|
"arm64",
|
||||||
"amd64"
|
"amd64"
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
- DB_HOST=shlink-db
|
- DB_HOST=shlink-db
|
||||||
- DB_NAME=shlink
|
- DB_NAME=shlink
|
||||||
- DB_USER=shlink
|
- DB_USER=shlink
|
||||||
- DB_PASSWORD=shlink
|
- DB_PASSWORD=${SHLINK_POSTGRES_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:8080
|
- ${APP_PORT}:8080
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -53,6 +53,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
|
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=shlink
|
- POSTGRES_PASSWORD=${SHLINK_POSTGRES_PASSWORD}
|
||||||
- POSTGRES_USER=shlink
|
- POSTGRES_USER=shlink
|
||||||
- POSTGRES_DB=shlink
|
- POSTGRES_DB=shlink
|
||||||
|
|
Loading…
Reference in New Issue
Block a user