Change default port to 8080

This commit is contained in:
Robin 2022-03-10 14:02:31 +01:00
parent c4df7426dd
commit 69fa839200
3 changed files with 3 additions and 4 deletions

View File

@ -9,8 +9,7 @@ services:
- type: bind # same as php container - type: bind # same as php container
source: ./web source: ./web
target: /data target: /data
environment: # environment:
NGINX_PORT: 8080
# Change this if you rename the php container # Change this if you rename the php container
# PHP_FPM: php:9000 # PHP_FPM: php:9000
depends_on: [php] depends_on: [php]

View File

@ -4,7 +4,7 @@ services:
nginx: nginx:
image: namelessmc/nginx:v2-pr12 image: namelessmc/nginx:v2-pr12
ports: ['80:80'] ports: ['8080:8080']
volumes: volumes:
- type: bind # same as php container - type: bind # same as php container
source: ./web source: ./web

View File

@ -1,7 +1,7 @@
FROM nginx:alpine FROM nginx:alpine
ENV PHP_FPM="php:9000" \ ENV PHP_FPM="php:9000" \
NGINX_PORT="80" NGINX_PORT="8080"
RUN find /etc/nginx -type f -not -name 'mime.types' -not -name 'fastcgi_params' -delete && \ RUN find /etc/nginx -type f -not -name 'mime.types' -not -name 'fastcgi_params' -delete && \
rm -rf conf.d modules rm -rf conf.d modules