Fix redis connection errors

master
Tim Möhlmann 6 years ago
parent be7dc1e6bd
commit 8c6e0c56fb
No known key found for this signature in database
GPG Key ID: 8677988D8072E8DE

@ -5,17 +5,21 @@ version: '3.6'
services: services:
redis: redis:
image: redis:alpine image: redis:alpine
networks:
- default
setup_master: setup_master:
image: mailu/setup:master image: mailu/setup:master
networks: networks:
- web - web
- default
env_file: .env env_file: .env
environment: environment:
this_version: "master" this_version: "master"
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.port=80 - traefik.port=80
- traefik.docker.network=web
- traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/master/ - traefik.main.frontend.rule=Host:${ADDRESS};PathPrefix:/master/
depends_on: depends_on:
- redis - redis
@ -24,12 +28,14 @@ services:
image: mailu/setup:${RELEASE} image: mailu/setup:${RELEASE}
networks: networks:
- web - web
- default
env_file: .env env_file: .env
environment: environment:
this_version: ${RELEASE} this_version: ${RELEASE}
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.port=80 - traefik.port=80
- traefik.docker.network=web
- traefik.root.frontend.redirect.regex=.* - traefik.root.frontend.redirect.regex=.*
- traefik.root.frontend.redirect.replacement=/${RELEASE}/ - traefik.root.frontend.redirect.replacement=/${RELEASE}/
- traefik.root.frontend.rule=Host:${ADDRESS};PathPrefix:/ - traefik.root.frontend.rule=Host:${ADDRESS};PathPrefix:/
@ -40,3 +46,5 @@ services:
networks: networks:
web: web:
external: true external: true
default:
external: false

Loading…
Cancel
Save