Hi Guys,
I have both Traefik and syspass on the same docker server and redirection works fine. Custom SSL certificate works fine however, I have am getting blocked:mixed-content on most pages. Below are my configiuration. Have replaced my wildcard certificate with *.example.com
Any help would be appreciated!
traefik docker-compose.yml
version: "3"
services:
traefik:
image: traefik:alpine
labels:
- traefik.frontend.rule=Host:traefik.example.com
- traefik.port=8080
- traefik.enable=true
container_name: "traefik"
ports:
- 80:80
- 443:443
- 8080:8080
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./cert:/cert
- ./rules.toml:/rules.toml
- ./traefik.toml:/traefik.toml:ro
networks:
web:
external: true
rules.toml
defaultEntryPoints = ["http", "https"]
logLevel = "DEBUG"
[docker]
endpoint = "unix:///var/run/docker.sock"
exposedByDefault = false
network = "web"
watch = true
domain = "example.com"
# enabling api is not absolutely necessary, it is needed only if you need dashboard.
[api]
dashboard = true
entrypoint = "dashboard"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/cert/server.crt"
keyFile = "/cert/server.key"
[entryPoints.dashboard]
address = ":8080"
[accessLog]
filePath= "/access.log"
bufferingSize = 100
[file]
filename = "rules.toml"
watch = true
syspass docker-compose.yml
version: '2'
services:
app:
container_name: syspass-app-01
image: syspass-app:cf-theme
restart: always
ports:
- 100:80
networks:
- web
links:
- db
volumes:
- syspass-config-01:/var/www/html/sysPass/app/config
- syspass-backup-01:/var/www/html/sysPass/app/backup
environment:
- USE_SSL=no
labels:
- traefik.enable=true
- traefik.port=80
- traefik.frontend.rule=Host:syspass.example.com
- traefik.docker.network=web
db:
container_name: syspass-db-01
restart: always
image: mariadb:10.2
environment:
- MYSQL_ROOT_PASSWORD=.......................
ports:
- "3306"
volumes:
- syspass-db-01:/var/lib/mysql
volumes:
syspass-config-01: {}
syspass-backup-01: {}
syspass-db-01: {}
networks:
web:
external: true