Skip to content

Commit 337ac76

Browse files
committed
Change the Docker port back to 80, use PCA_NGINX_PORT if you need different
1 parent d6d19e4 commit 337ac76

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN apk add --no-cache nginx gettext \
2323
&& chmod -R 777 /var/www/html /run/nginx /var/cache/nginx /var/log/nginx \
2424
&& sed -i 's|^listen = .*|listen = 127.0.0.1:9000|' /usr/local/etc/php-fpm.d/www.conf
2525

26-
ENV PCA_NGINX_PORT=8080
26+
ENV PCA_NGINX_PORT=80
2727

2828
# NGINX config template
2929
RUN printf 'server {\n\
@@ -41,8 +41,6 @@ RUN printf 'server {\n\
4141
}\n\
4242
}\n' > /etc/nginx/http.d/default.conf.template
4343

44-
EXPOSE 8080
45-
4644
CMD envsubst '${PCA_NGINX_PORT}' < /etc/nginx/http.d/default.conf.template > /etc/nginx/http.d/default.conf \
4745
&& php-fpm -D \
4846
&& nginx -g 'daemon off;'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ A Docker image is also available: https://hub.docker.com/r/robinn/phpcacheadmin
100100
Run with a single command:
101101

102102
```bash
103-
docker run -p 8080:8080 -d --name phpcacheadmin -e "PCA_REDIS_0_HOST=redis_host" -e "PCA_REDIS_0_PORT=6379" -e "PCA_MEMCACHED_0_HOST=memcached_host" -e "PCA_MEMCACHED_0_PORT=11211" robinn/phpcacheadmin
103+
docker run -p 8080:80 -d --name phpcacheadmin -e "PCA_REDIS_0_HOST=redis_host" -e "PCA_REDIS_0_PORT=6379" -e "PCA_MEMCACHED_0_HOST=memcached_host" -e "PCA_MEMCACHED_0_PORT=11211" robinn/phpcacheadmin
104104
```
105105

106106
Or use it in **docker-compose.yml**
@@ -110,7 +110,7 @@ services:
110110
phpcacheadmin:
111111
image: robinn/phpcacheadmin
112112
ports:
113-
- "8080:8080"
113+
- "8080:80"
114114
#volumes:
115115
# If you want to use config.php instead of ENV variables
116116
# - "./config.php:/var/www/html/config.php"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
phpcacheadmin:
33
build: .
44
ports:
5-
- "8080:8080"
5+
- "8080:80"
66
volumes:
77
- "./:/var/www/html/"
88
environment:

0 commit comments

Comments
 (0)