Hello all,
I’m trying to setup Passbolt with docker compose and traefik. Following Passbolt Help | Docker passbolt installation and Passbolt Help | Auto configure HTTPS with Let's Encrypt on Docker
The passbolt and db containers starts fine, but the traefik ones is stuck in a loop.
As for the logs, it says: command traefik error: yaml: line 38: did not find expected key
I guess it is referring to the line 38 of the traefik.yaml
entryPoint: web
I copied from
Here are the files, does anyone have a suggestion?
root@passbolt-test:/mnt# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0672a121f90a passbolt/passbolt:latest-ce "/usr/bin/wait-for.s…" 41 minutes ago Up 8 minutes 80/tcp, 443/tcp mnt-passbolt-1
71b625d37d6e mariadb:10.10 "docker-entrypoint.s…" 41 minutes ago Up 8 minutes 3306/tcp mnt-db-1
d7ae9ac9565d traefik:2.6 "/entrypoint.sh trae…" 41 minutes ago Restarting (1) 33 seconds ago mnt-traefik-1
traefik.yam
global:
sendAnonymousUsage: false
log:
level: INFO
format: common
providers:
docker:
endpoint: 'unix:///var/run/docker.sock'
watch: true
exposedByDefault: true
swarmMode: false
file:
directory: /etc/traefik/conf/
watch: true
api:
dashboard: false
debug: false
insecure: false
entryPoints:
web:
address: ':80'
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
websecure:
address: ':443'
certificatesResolvers:
letsencrypt:
acme:
email: xxx@xx.xx
storage: /shared/acme.json
caServer: 'https://acme-v02.api.letsencrypt.org/directory'
keyType: EC256
httpChallenge:
entryPoint: web
tlsChallenge: {}traefik.yaml
version: '3.9'
services:
db:
image: mariadb:10.10
restart: unless-stopped
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "true"
MYSQL_DATABASE: "xx"
MYSQL_USER: "xx"
MYSQL_PASSWORD: "xxx"
volumes:
- ./database_volume:/var/lib/mysql
passbolt:
image: passbolt/passbolt:latest-ce
restart: unless-stopped
depends_on:
- db
environment:
APP_FULL_BASE_URL: https://xxxxx.xx.xx
DATASOURCES_DEFAULT_HOST: "db"
DATASOURCES_DEFAULT_USERNAME: "xxx"
DATASOURCES_DEFAULT_PASSWORD: "xxx"
DATASOURCES_DEFAULT_DATABASE: "xx"
EMAIL_DEFAULT_FROM_NAME: "xxxx Password Manager"
EMAIL_DEFAULT_FROM: "xxxx@xx.xx"
EMAIL_TRANSPORT_DEFAULT_HOST: "xxxx"
EMAIL_TRANSPORT_DEFAULT_PORT: "xx"
EMAIL_TRANSPORT_DEFAULT_USERNAME: "xxxx"
EMAIL_TRANSPORT_DEFAULT_PASSWORD: "xxxxx"
EMAIL_TRANSPORT_DEFAULT_TLS: "YES"
volumes:
- ./gpg_volume:/etc/passbolt/gpg
- ./jwt_volume:/etc/passbolt/jwt
command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
# ports:
# - 80:81
# - 443:444
labels:
traefik.enable: "true"
traefik.http.routers.passbolt-http.entrypoints: "web"
traefik.http.routers.passbolt-http.rule: "Host(`xxxx.xxx.xx`)"
traefik.http.routers.passbolt-http.middlewares: "SslHeader@file"
traefik.http.routers.passbolt-https.middlewares: "SslHeader@file"
traefik.http.routers.passbolt-https.entrypoints: "websecure"
traefik.http.routers.passbolt-https.rule: "Host(`xxxx.xxx.xx`)"
traefik.http.routers.passbolt-https.tls: "true"
traefik.http.routers.passbolt-https.tls.certresolver: "letsencrypt"
traefik:
image: traefik:2.6
restart: always
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yaml:/traefik.yaml:ro
- ./conf/:/etc/traefik/conf
- ./shared/:/shared
root@passbolt-test:/mnt# docker logs mnt-traefik-1
2023/05/05 06:59:42 command traefik error: yaml: line 38: did not find expected key
2023/05/05 06:59:43 command traefik error: yaml: line 38: did not find expected key
2023/05/05 06:59:44 command traefik error: yaml: line 38: did not find expected key
Thanks