Add a traefik frontend with basic features
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
||||
- "$BIND_ADDRESS:443:443"
|
||||
volumes:
|
||||
- "$ROOT/certs:/certs"
|
||||
- /var/run/docker.sock:/docker.sock:ro
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
@@ -87,6 +88,10 @@ services:
|
||||
admin:
|
||||
# build: admin
|
||||
image: mailu/admin:$VERSION
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.frontend.rule=Host:$DOMAIN;PathPrefix:/admin/
|
||||
- traefik.port=80
|
||||
restart: always
|
||||
env_file: .env
|
||||
ports:
|
||||
@@ -100,6 +105,11 @@ services:
|
||||
webmail:
|
||||
# build: "$WEBMAIL"
|
||||
image: "mailu/$WEBMAIL:$VERSION"
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.frontend.rule=Host:$DOMAIN;PathPrefix:/webmail/
|
||||
- traefik.root.frontend.rule=Host:$DOMAIN;Path:/;AddPrefix:/webmail/
|
||||
- traefik.port=80
|
||||
restart: always
|
||||
env_file: .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user