Compare commits

..

2 Commits

Author SHA1 Message Date
eroncero
24bdc06190 Env improved 2025-08-03 17:56:45 +02:00
eroncero
7b673ca598 Add .env 2025-08-03 17:50:50 +02:00
3 changed files with 11 additions and 3 deletions

5
.env Normal file
View File

@@ -0,0 +1,5 @@
HOST_HTTP_PORT=80
HOST_HTTPS_PORT=443
NGINX_HTTP_PORT=8888
NGINX_HTTPS_PORT=8843
PHP_VERSIONS=7.2 7.1 # Set this without quotes!

View File

@@ -2,8 +2,8 @@ services:
nginx-srv:
image: eroncero/nginx-srv
ports:
- "127.0.0.1:8888:80"
- "[::1]:8843:443"
- "127.0.0.1:${NGINX_HTTP_PORT}:${HOST_HTTP_PORT}"
- "[::1]:${NGINX_HTTPS_PORT}:${HOST_HTTPS_PORT}"
restart: unless-stopped
volumes:
- ./nginx-srv/sites-available:/etc/nginx/sites-available
@@ -14,7 +14,7 @@ services:
image: eroncero/multi-php-fpm
restart: unless-stopped
environment:
- PHP_VERSIONS=7.2 7.1
- PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
volumes:
- ./multi-php-fpm/etc/php:/etc/php
- ./multi-php-fpm/run/php:/run/php

View File

@@ -1,6 +1,9 @@
#!/bin/sh
set -e
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
apt-get update
for version in $PHP_VERSIONS; do