1
0
Fork 0

Do not expose containers by default in traefik

This commit is contained in:
Rigel Kent 2020-03-06 10:59:11 +01:00
parent 1a9b141d83
commit e604efcb71
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
3 changed files with 5 additions and 12 deletions

View File

@ -61,4 +61,7 @@ entryPoint = "https"
#
# Required
#
entryPoint = "http"
entryPoint = "http"
[docker]
exposedByDefault = false

View File

@ -68,26 +68,20 @@ services:
- redis
- postfix
restart: "always"
labels:
traefik.enable: "false"
postgres:
image: postgres:10-alpine
image: postgres:12-alpine
env_file:
- .env
volumes:
- ./docker-volume/db:/var/lib/postgresql/data
restart: "always"
labels:
traefik.enable: "false"
redis:
image: redis:5-alpine
volumes:
- ./docker-volume/redis:/data
restart: "always"
labels:
traefik.enable: "false"
postfix:
image: mwader/postfix-relay
@ -95,8 +89,6 @@ services:
- .env
volumes:
- ./docker-volume/opendkim/keys:/etc/opendkim/keys
labels:
traefik.enable: "false"
restart: "always"
networks:

View File

@ -12,6 +12,4 @@ envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE > $TARGET
# Remove HTTPS/SSL from nginx conf
sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET
cat $TARGET
nginx -g "daemon off;"