Initial commit with postgresql in docker-compose

This commit is contained in:
kashiuno 2025-01-04 10:15:52 +03:00
commit 9fc17d3711
3 changed files with 14 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
*.iml

9
docker-compose.yaml Normal file
View 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
View File

@ -0,0 +1,3 @@
create user qr_access_user with password '123';
create database qr_access with owner qr_access_user;