tasks/docker/init-sql.sh
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

5 lines
113 B
Bash

#!/bin/bash
set -e
cd /opt/tasks
DB_PASSWORD="`cat "$DB_PASSWORD_FILE"`" psql -vON_ERROR_STOP=1 -f database.sql