-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-preprod.yml
37 lines (34 loc) · 1.54 KB
/
docker-compose-preprod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.5'
services:
hugo:
image: hugo_preprod
labels:
- "traefik.http.routers.hugo.rule=Host(`test.ybs.re`)"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.redirs.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.redirs.entrypoints=web"
- "traefik.http.routers.redirs.middlewares=redirect-to-https"
- "traefik.http.routers.hugo.tls=true"
- "traefik.http.routers.hugo.tls.certresolver=leresolver"
# Remove basicauth in prod
- "traefik.http.middlewares.hugobaseauth.basicauth.usersFile=/htpasswd/hugo"
- "traefik.http.middlewares.hugobaseauth.basicauth.removeheader=true"
# end basicauth
- "traefik.http.middlewares.hugoHeader.headers.framedeny=true"
- "traefik.http.middlewares.hugoHeader.headers.sslredirect=true"
- "traefik.http.middlewares.hugoHeader.headers.contenttypenosniff=true"
- "traefik.http.middlewares.hugoHeader.headers.browserxssfilter=true"
- "traefik.http.middlewares.hugoHeader.headers.contentsecuritypolicy=frame-src 'self';default-src 'self';script-src 'self';object-src 'self'"
- "traefik.http.middlewares.hugoHeader.headers.sslforcehost=true"
- "traefik.http.middlewares.hugoHeader.headers.stsseconds=63072000"
- "traefik.http.middlewares.hugoHeader.headers.stspreload=true"
- "traefik.http.routers.hugo.middlewares=hugoHeader, hugobaseauth"
networks:
- web
container_name: hugo_preprod
networks:
web:
external:
name: web