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)
This commit is contained in:
parent
bdf56ece83
commit
5110ded7e5
8 changed files with 201 additions and 0 deletions
docker
23
docker/env.example
Normal file
23
docker/env.example
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Version of software components
|
||||
MEMCACHED_VERSION=1.6
|
||||
NGINX_VERSION=1.19
|
||||
PHP_VERSION=8.3
|
||||
POSTGRESQL_VERSION=17
|
||||
TRAEFIX_VERSION=2.4
|
||||
|
||||
# Port to bind on the host
|
||||
HOST_PORT=80
|
||||
# UID and GID to run php-fpm as
|
||||
UID=1000
|
||||
GID=1000
|
||||
# PostgreSQL superuser password
|
||||
PG_PASSWORD=...
|
||||
# Database name
|
||||
DB_NAME=tasks
|
||||
# Database access username
|
||||
DB_USER=tasks
|
||||
# Database access password
|
||||
DB_PASSWORD=...
|
||||
|
||||
# Base URL, if autodetection fails
|
||||
BASE_URL=
|
Loading…
Add table
Add a link
Reference in a new issue