Add init db sql file
This commit is contained in:
parent
f871d5e052
commit
0d2ff20557
3
deploy/db_migrations/init.sql
Normal file
3
deploy/db_migrations/init.sql
Normal file
@ -0,0 +1,3 @@
|
||||
CREATE USER egommerce;
|
||||
CREATE DATABASE egommerce;
|
||||
GRANT ALL PRIVILEGES ON DATABASE egommerce TO egommerce;
|
@ -107,6 +107,7 @@ services:
|
||||
- POSTGRES_PASSWORD
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./db_migrations/init.sql:/docker-entrypoint-initdb.d/
|
||||
networks:
|
||||
- postgres-db-network
|
||||
- api-logger-network
|
||||
|
Loading…
Reference in New Issue
Block a user