Open maslick opened 9 years ago
I would probably namespace them. So:
POSTGRES_DB_1="database=X;user=X;password=X"
POSTGRES_DB_2="database=X;user=X;password=X"
Perhaps a limit of 10 and you could do something like:
for i in $(seq 0 10);
do
tmp='POSTGRES_DB_'${i}
# And all other variables
# Array
arr=$(echo ${!tmp} | tr ";" "\n")
for x in $arr
do
# Do the postgres logic to create that Database
done
done
Is it possible to create multiple databases at startup?
docker-compose.yml