diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 82efc16..98b577b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -6,8 +6,10 @@ services: # irflow_metabase named volume containing PostgreSQL database volumes: - syncurity_st2:/var/lib/pgsql/data + - syn_st2_datastore.d:/docker-entrypoint-initdb.d volumes: syncurity_st2: + diff --git a/docker-compose.yml b/docker-compose.yml index 5f3652b..27b35a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,8 @@ services: POSTGRESQL_USER: ${POSTGRESQL_USER} POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD} + volumes: + - syn_st2_datastore.d:/docker-entrypoint-initdb.d networks: @@ -39,3 +41,5 @@ networks: config: - subnet: ${SYNCURITY_ST2_NETWORK_SUBNET} +volumes: + syn_st2_datastore.d: diff --git a/prod_environment.sh b/prod_environment.sh index c19054c..15e0b12 100755 --- a/prod_environment.sh +++ b/prod_environment.sh @@ -65,7 +65,7 @@ docker logs syncurity_postgresql # while not docker logs metabase_web | grep until [[ $(docker logs syncurity_postgresql | grep COMPLETE) ]]; do - print "$(docker logs syncurity_postgresql | grep COMPLETE)" + echo "$(docker logs syncurity_postgresql | grep COMPLETE)" done echo "Complete" diff --git a/syn_st2_datastore/create_database.sql b/syn_st2_datastore.d/create_database.sql similarity index 100% rename from syn_st2_datastore/create_database.sql rename to syn_st2_datastore.d/create_database.sql