File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ services:
143
143
- POSTGRES_PASSWORD=docs_pwd
144
144
- POSTGRES_DB=docs_db
145
145
volumes :
146
+ - ${PWD}/common/dockerfiles/entrypoints/postgres.sql:/docker-entrypoint-initdb.d/postgres.sql
146
147
- postgres_data:/var/lib/postgresql/data
147
148
- postgres_backups_data:/backups
148
149
networks :
Original file line number Diff line number Diff line change
1
+ -- Initialization script.
2
+ -- https://github.com/docker-library/docs/blob/master/postgres/README.md#initialization-scripts
3
+ CREATE DATABASE telemetry ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ if [ -n "$INIT" ];
6
6
then
7
7
echo " Performing initial tasks..."
8
8
python3 manage.py migrate
9
+ python3 manage.py migrate --database telemetry
9
10
cat ../../docker/createsuperuser.py | python3 manage.py shell
10
11
bash ../../docker/createbuckets.sh
11
12
python3 manage.py collectstatic --no-input
You can’t perform that action at this time.
0 commit comments