Changed Tomcat to operate on port 8080 and PHPMyAdmin to port 9000

Cloudflare by default only permits specific ports to pass through in the security mode we use. Since PHPMyAdmin should be hard to access, by binding it to port 9000, Cloudflare does not allow traffic unless you bypass it.
This commit is contained in:
Marwolf
2018-08-04 10:09:59 -04:00
parent e5c7f34d26
commit 4d84f9d211
8 changed files with 28 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ services:
container_name: nginx
volumes:
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./Website:/var/www/html/public"
#- "./Website:/var/www/html/public"
- "./etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
- "./etc/logs/nginx:/var/log/nginx"
- "./etc/logs/letsencrypt:/var/log/letsencrypt"
@@ -35,7 +35,7 @@ services:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
ports:
- "8080:80"
- "9000:80"
environment:
- PMA_ARBITRARY=1
- PMA_HOST=mysql
@@ -75,10 +75,10 @@ services:
# labels: "MySQL"
tomcat:
image: tomcat:9.0.10-jre10-slim
image: tomcat:latest
container_name: tomcat
ports:
- "0.0.0.0:8082:8082"
- "8080:8080"
restart: always
volumes:
- "./Website:/usr/local/tomcat/webapps/ROOT"
@@ -105,6 +105,7 @@ services:
environment:
NODE_ENV: production
privacy__useUpdateCheck: 0
url: 'http://localhost' #change this!
# logging:
# driver: splunk
# options: