Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- wallabag:
- image: wallabag/wallabag:latest
- restart: unless-stopped
- environment:
- - SYMFONY__ENV__DOMAIN_NAME=https://wallabag.domain.local
- - SYMFONY__ENV__FOSUSER_REGISTRATION=true
- - SYMFONY__ENV__FOSUSER_CONFIRMATION=false
- volumes:
- - /docker/data/wallabag/:/var/www/wallabag/data
- labels:
- - traefik.enable=true
- # HTTPS entrypoint
- - traefik.http.routers.wallabag.entryPoints=https
- - traefik.http.routers.wallabag.tls=true
- - traefik.http.routers.wallabag.rule=Host(`wallabag.domain.local`) # Define hostname for HTTPS entrypoint
- # Define an HTTP entryPoint, for purposes of being re-directed to HTTPS
- - traefik.http.routers.wallabag-redirect.entryPoints=http
- - traefik.http.routers.wallabag-redirect.rule=Host(`wallabag.domain.local`)
- # Actual HTTP -> HTTPS redirect for this service
- # References redirect middleware from dynamic.yml trafeik file
- - traefik.http.routers.wallabag-redirect.middlewares=https-redirect@file
- depends_on:
- - redis
- redis:
- image: redis:alpine
- restart: unless-stopped
- volumes:
- - /docker/data/wallabag/:/data
- healthcheck:
- test: ["CMD", "redis-cli", "ping"]
- interval: 20s
- timeout: 3s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement