Do not expose containers by default in traefik
This commit is contained in:
parent
1a9b141d83
commit
e604efcb71
|
@ -61,4 +61,7 @@ entryPoint = "https"
|
||||||
#
|
#
|
||||||
# Required
|
# Required
|
||||||
#
|
#
|
||||||
entryPoint = "http"
|
entryPoint = "http"
|
||||||
|
|
||||||
|
[docker]
|
||||||
|
exposedByDefault = false
|
|
@ -68,26 +68,20 @@ services:
|
||||||
- redis
|
- redis
|
||||||
- postfix
|
- postfix
|
||||||
restart: "always"
|
restart: "always"
|
||||||
labels:
|
|
||||||
traefik.enable: "false"
|
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:10-alpine
|
image: postgres:12-alpine
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-volume/db:/var/lib/postgresql/data
|
- ./docker-volume/db:/var/lib/postgresql/data
|
||||||
restart: "always"
|
restart: "always"
|
||||||
labels:
|
|
||||||
traefik.enable: "false"
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:5-alpine
|
image: redis:5-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-volume/redis:/data
|
- ./docker-volume/redis:/data
|
||||||
restart: "always"
|
restart: "always"
|
||||||
labels:
|
|
||||||
traefik.enable: "false"
|
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
image: mwader/postfix-relay
|
image: mwader/postfix-relay
|
||||||
|
@ -95,8 +89,6 @@ services:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-volume/opendkim/keys:/etc/opendkim/keys
|
- ./docker-volume/opendkim/keys:/etc/opendkim/keys
|
||||||
labels:
|
|
||||||
traefik.enable: "false"
|
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -12,6 +12,4 @@ envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE > $TARGET
|
||||||
# Remove HTTPS/SSL from nginx conf
|
# Remove HTTPS/SSL from nginx conf
|
||||||
sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET
|
sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET
|
||||||
|
|
||||||
cat $TARGET
|
|
||||||
|
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
Loading…
Reference in New Issue