version: '3.8' services: #Websites luke-else.co.uk (8000) snexo.co.uk (8001) luke-else.co.uk: image: "nginx:latest" container_name: luke-else.co.uk volumes: - ./luke-else.co.uk/:/usr/share/nginx/html networks: - proxy depends_on: - traefik labels: ## Expose luke-else Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.services.personal.loadbalancer.server.port=80" - "traefik.http.routers.personal.rule=Host(`luke-else.co.uk`)" - "traefik.http.routers.personal.entrypoints=websecure" - "traefik.http.routers.personal.tls.certresolver=myresolver" restart: unless-stopped snexo.co.uk: image: "php:apache" container_name: snexo.co.uk volumes: - ./snexo.co.uk/:/var/www/html networks: - proxy depends_on: - traefik labels: ## Expose Snexo Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.services.snexo.loadbalancer.server.port=80" - "traefik.http.routers.snexo.rule=Host(`snexo.co.uk`)" - "traefik.http.routers.snexo.entrypoints=websecure" - "traefik.http.routers.snexo.tls.certresolver=myresolver" restart: unless-stopped networks: proxy: external: true