diff --git a/apps/cic-cache/.config/database.ini b/apps/cic-cache/.config/database.ini index b8c7768..72175b9 100644 --- a/apps/cic-cache/.config/database.ini +++ b/apps/cic-cache/.config/database.ini @@ -1,5 +1,5 @@ [database] -NAME=cic-eth +NAME=cic_cache USER=postgres PASSWORD= HOST=localhost diff --git a/apps/cic-cache/cic_cache/db/migrations/default/alembic.ini b/apps/cic-cache/cic_cache/db/migrations/default/alembic.ini index 352cf33..d05f454 100644 --- a/apps/cic-cache/cic_cache/db/migrations/default/alembic.ini +++ b/apps/cic-cache/cic_cache/db/migrations/default/alembic.ini @@ -36,7 +36,7 @@ script_location = . # output_encoding = utf-8 #sqlalchemy.url = driver://user:pass@localhost/dbname -sqlalchemy.url = postgresql+psycopg2://postgres@localhost:5432/cic-cache +sqlalchemy.url = postgresql+psycopg2://postgres@localhost:5432/cic_cache [post_write_hooks] diff --git a/apps/cic-cache/db/initdb_files/create_all_db.sql b/apps/cic-cache/db/initdb_files/create_all_db.sql deleted file mode 100644 index 1282d8b..0000000 --- a/apps/cic-cache/db/initdb_files/create_all_db.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE DATABASE "cic-cache"; -CREATE DATABASE "cic-eth"; -CREATE DATABASE "cic-notify"; -CREATE DATABASE "cic-meta"; -CREATE DATABASE "cic-signer"; \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 7bd962b..ad78f0b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,6 +54,7 @@ services: volumes: - ./scripts/initdb/create_db.sql:/docker-entrypoint-initdb.d/1-create_all_db.sql - ./apps/cic-meta/scripts/initdb/postgresql.sh:/docker-entrypoint-initdb.d/2-init-cic-meta.sh + - ./apps/cic-cache/db/psycopg2/db.sql:/docker-entrypoint-initdb.d/3-init-cic-meta.sql - postgres-db:/var/lib/postgresql/data redis: