trustai-uk/robots/robots-compose.yml

27 lines
878 B
YAML

version: "3.3"
services:
nginx:
image: nginx:stable-alpine
volumes:
- ./www:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.robot.rule=Host(`robots.trustai.uk`)"
- "traefik.http.routers.robot.entrypoints=web"
- "traefik.http.services.robot.loadbalancer.server.port=80"
# TLS
- "traefik.http.routers.robots.rule=Host(`robots.trustai.uk`)"
- "traefik.http.routers.robots.entrypoints=websecure"
- "traefik.http.routers.robots.tls.certresolver=myhttpchallenge"
# Redirect
- "traefik.http.routers.robot.middlewares=https_redirect"
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
networks:
- traefik-public
networks:
traefik-public:
external: true