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

View File

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