version: "3.3" networks: reverse_proxy_vnet: external: true services: dokuwiki: image: bitnami/dokuwiki:20200729.0.0 networks: reverse_proxy_vnet: restart: unless-stopped environment: - TZ=Europe/Paris - PHP_MEMORY_LIMIT=64M - PHP_POST_MAX_SIZE=16M - PHP_UPLOAD_MAX_FILESIZE=16M volumes: - ${PWD}/data:/bitnami/dokuwiki:rw labels: # Directives de configuration lues par le reverse proxy Traefik - "traefik.enable=true" - "traefik.http.routers.dokuwiki_http.entryPoints=HTTP" - "traefik.http.routers.dokuwiki_http.rule=Host(`wiki.mairie.local`)" - "traefik.http.services.dokuwiki.loadbalancer.server.port=8080" # Active le middleware de redirection http -> https - "traefik.http.middlewares.redirect_to_HTTPS.redirectscheme.scheme=https" - "traefik.http.middlewares.redirect_to_HTTPS.redirectscheme.permanent=true" - "traefik.http.middlewares.https-redirect.redirectscheme.port=443" - "traefik.http.routers.dokuwiki_http.middlewares=redirect_to_HTTPS@docker" # Gestion du HTTPS - "traefik.http.routers.dokuwiki_https.entrypoints=HTTPS" - "traefik.http.routers.dokuwiki_https.rule=Host(`wiki.mairie.local`)" - "traefik.http.routers.dokuwiki_https.tls=true"