tasks/docker/db-config.sql
Emmanuel BENOîT 5110ded7e5
feat: support running using Docker Compose
This commit adds a Docker Compose file which will run the application
using docker. The application is fronted by Traefik, and runs using
PHP-fpm. nginx is used to accept queries from Traefik and relay them to
the PHP-fpm containers (Traefik doesn't support FastCGI directly).
Sessions are shared between the various PHP containers using memcached.

Part of this work is based on [this repo](https://github.com/wandersonwhcr/docker-nginx-php-fpm)
2025-01-05 21:09:27 +01:00

6 lines
230 B
SQL

\getenv db_name DB_NAME
\getenv webapp_user DB_USER
\getenv webapp_password DB_PASSWORD
CREATE ROLE :webapp_user WITH LOGIN ENCRYPTED PASSWORD :'webapp_password';
CREATE DATABASE :db_name WITH TEMPLATE=template0 ENCODING='UTF8';