Initial commit with postgresql in docker-compose
This commit is contained in:
commit
9fc17d3711
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.idea
|
||||||
|
*.iml
|
9
docker-compose.yaml
Normal file
9
docker-compose.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:17.2
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: 123
|
||||||
|
volumes:
|
||||||
|
- ./init.d/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
|
||||||
|
ports:
|
||||||
|
- '5432:5432'
|
3
init.d/init-db.sql
Normal file
3
init.d/init-db.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
create user qr_access_user with password '123';
|
||||||
|
|
||||||
|
create database qr_access with owner qr_access_user;
|
Loading…
Reference in New Issue
Block a user