Skip to content
Snippets Groups Projects
Commit c8ec8821 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use empty postgresql password by default, but pass in everywhere if defined.

parent f8eb729f
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ services:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=biscuit
- POSTGRES_PASSWORD=biscuit
- POSTGRES_DB=biscuit
memcached:
image: memcached:latest
......@@ -21,7 +20,6 @@ services:
- BISCUIT_secret_key=DoNotUseInProduction
- BISCUIT_http__allowed_hosts="['*']"
- BISCUIT_database__host=db
- BISCUIT_database__password=biscuit
- BISCUIT_caching__memcached__address=memcached:11211
depends_on:
- db
......
#!/bin/bash
GUNICORN_BIND=${GUNICORN_BIND:-0.0.0.0:8000}
POSTGRES_HOST=${BISCUIT_database__host:-127.0.0.1}
POSTGRES_PORT=${BISCUIT_database__port:-5432}
while ! nc -z ${BISCUIT_database__host} 5432; do
[[ -n $POSTGRES_PASSWORD ]] && BISCUIT_database__password=$POSTGRES_PASSWORD
while ! nc -z $POSTGRES_HOST $POSTGRES_PORT; do
sleep 0.1
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment