docker file for postgresql

This commit is contained in:
tom moron
2024-08-11 20:35:58 +02:00
parent 3076c1514e
commit e16faf4f27
9 changed files with 66 additions and 4 deletions

View File

@ -0,0 +1,7 @@
service postgresql start
su postgres << EOF
createdb $DB_NAME
psql -c "CREATE USER $DB_USERNAME WITH PASSWORD '$DB_PASSWORD'"
psql -c "GRANT ALL PRIVILEGES ON database $DB_NAME TO $DB_USERNAME"
EOF