Add init db sql file

This commit is contained in:
Piotr Biernat 2023-05-22 00:05:33 +02:00
parent f871d5e052
commit 0d2ff20557
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,3 @@
CREATE USER egommerce;
CREATE DATABASE egommerce;
GRANT ALL PRIVILEGES ON DATABASE egommerce TO egommerce;

View File

@ -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