Emmanuel BENOîT
5110ded7e5
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)
6 lines
230 B
SQL
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';
|