version: '3.8' services: #Websites luke-else.co.uk (8000) snexo.co.uk (8001) luke-else.co.uk: image: "php:apache" container_name: luke-else.co.uk volumes: - ./luke-else.co.uk/:/var/www/html labels: ## Expose luke-else Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.routers.luke-else.rule=Host(`luke-else.co.uk`) || Host(`www.luke-else.co.uk`)" - "traefik.http.routers.luke-else.entrypoints=http" - "traefik.http.routers.luke-else.middlewares=redirect@file" - "traefik.http.routers.luke-else-secured.rule=Host(`luke-else.co.uk`) || Host(`www.luke-else.co.uk`)" - "traefik.http.routers.luke-else-secured.entrypoints=https" - "traefik.http.routers.luke-else-secured.tls.certresolver=mytlschallenge" restart: unless-stopped snexo.co.uk: image: "php:apache" container_name: snexo.co.uk volumes: - ./snexo.co.uk/:/var/www/html labels: ## Expose Snexo Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.routers.snexo.rule=Host(`snexo.luke-else.co.uk`) || Host(`www.snexo.luke-else.co.uk`)" - "traefik.http.routers.snexo.entrypoints=http" - "traefik.http.routers.snexo.middlewares=redirect@file" - "traefik.http.routers.snexo-secured.rule=Host(`snexo.luke-else.co.uk`) || Host(`www.snexo.luke-else.co.uk`)" - "traefik.http.routers.snexo-secured.entrypoints=https" - "traefik.http.routers.snexo-secured.tls.certresolver=mytlschallenge" restart: unless-stopped networks: frontend: external: true