Reduced port exposure to localhost

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-27 23:12:09 +01:00
parent dddb3fffc3
commit 51fbc67a04
10 changed files with 10 additions and 10 deletions

View File

@ -28,7 +28,7 @@
- RUN_MODE="{{run_mode}}" - RUN_MODE="{{run_mode}}"
- ROOT_URL="https://{{domain}}/" - ROOT_URL="https://{{domain}}/"
ports: ports:
- "{{http_port}}:3000" - "127.0.0.1:{{http_port}}:3000"
- "{{ssh_port}}:22" - "{{ssh_port}}:22"
links: links:
- database - database

View File

@ -13,7 +13,7 @@
image: jenkins/jenkins:lts image: jenkins/jenkins:lts
restart: always restart: always
ports: ports:
- "{{http_port}}:8080" - "127.0.0.1:{{http_port}}:8080"
restart: always restart: always
volumes: volumes:
- jenkins_data:/var/jenkins_home - jenkins_data:/var/jenkins_home

View File

@ -23,7 +23,7 @@
volumes: volumes:
- joomla-data:/var/www/html - joomla-data:/var/www/html
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
database: database:
image: mariadb image: mariadb
environment: environment:

View File

@ -17,7 +17,7 @@
volumes: volumes:
- "mediawiki-data:/var/www/html/" - "mediawiki-data:/var/www/html/"
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
database: database:
image: mariadb image: mariadb
environment: environment:

View File

@ -31,7 +31,7 @@
image: nginx:mainline image: nginx:mainline
restart: always restart: always
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
volumes: volumes:
- "{{conf_d_docker_path}}:{{conf_d_path}}" - "{{conf_d_docker_path}}:{{conf_d_path}}"
- "mybb-data:/var/www/html:ro" - "mybb-data:/var/www/html:ro"

View File

@ -18,7 +18,7 @@
volumes: volumes:
- nextcloud-data:/var/www/html - nextcloud-data:/var/www/html
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
environment: environment:
MYSQL_DATABASE: "nextcloud" MYSQL_DATABASE: "nextcloud"
MYSQL_USER: "nextcloud" MYSQL_USER: "nextcloud"

View File

@ -23,7 +23,7 @@
links: links:
- database - database
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
database: database:
image: mariadb image: mariadb
environment: environment:

View File

@ -19,7 +19,7 @@
image: linuxserver/wireguard image: linuxserver/wireguard
restart: always restart: always
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
- SYS_MODULE - SYS_MODULE

View File

@ -16,7 +16,7 @@
image: wordpress image: wordpress
restart: always restart: always
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
environment: environment:
WORDPRESS_DB_HOST: database:3306 WORDPRESS_DB_HOST: database:3306
WORDPRESS_DB_USER: "wordpress" WORDPRESS_DB_USER: "wordpress"

View File

@ -14,7 +14,7 @@
image: yourls image: yourls
restart: always restart: always
ports: ports:
- "{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
environment: environment:
YOURLS_DB_HOST: "database:3306" YOURLS_DB_HOST: "database:3306"
YOURLS_DB_USER: "yourls" YOURLS_DB_USER: "yourls"