22 lines
756 B
YAML
22 lines
756 B
YAML
version: '3'
|
|
services:
|
|
tsp:
|
|
image: com2014-server
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.tsp.rule=Host(`tsp.trustai.uk`)"
|
|
- "traefik.http.routers.tsp.entrypoints=web"
|
|
- "traefik.http.services.tsp.loadbalancer.server.port=8080"
|
|
# TLS
|
|
- "traefik.http.routers.tsps.rule=Host(`tsp.trustai.uk`)"
|
|
- "traefik.http.routers.tsps.entrypoints=websecure"
|
|
- "traefik.http.routers.tsps.tls.certresolver=myhttpchallenge"
|
|
# Redirect
|
|
- "traefik.http.routers.tsp.middlewares=https_redirect"
|
|
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
|
|
networks:
|
|
traefik-public:
|
|
external: true |