Commit ea651a6b authored by François Agneray's avatar François Agneray
Browse files

#3 done

parent 1a9dcec7
This diff is collapsed.
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER anis;
CREATE DATABASE anis_metamodel;
CREATE DATABASE anis_test;
GRANT ALL PRIVILEGES ON DATABASE anis_metamodel TO anis;
GRANT ALL PRIVILEGES ON DATABASE anis_test TO anis;
EOSQL
psql -v ON_ERROR_STOP=1 -f /sql/anis_test.sql --username "$POSTGRES_USER" --dbname "anis_test"
\ No newline at end of file
......@@ -12,7 +12,7 @@ services:
METADATA_DB_DRIVER: "pdo_pgsql"
METADATA_DB_HOST: "db"
METADATA_DB_PORT: 5432
METADATA_DB_DBNAME: "anisv3_db"
METADATA_DB_DBNAME: "anis_metamodel"
METADATA_DB_USER: "postgres"
METADATA_DB_PASSWORD: "postgres"
MAILER_HOST: "mailer"
......@@ -34,9 +34,10 @@ services:
image: postgres
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "anisv3_db"
volumes:
- pgdata:/var/lib/postgresql/data
- ./conf-dev/anis_test.sql:/sql/anis_test.sql
- ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
adminer:
image: adminer
ports:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment