This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
65 lines (61 loc) · 2.21 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.7"
services:
traefik:
image: traefik:v2.1
restart: unless-stopped
container_name: traefik
ports:
- "80:80"
- "443:443"
- "8080:8080" # Exposed for backend access via LAN
networks:
- web
volumes:
- ./traefik.yml:/traefik.yml
- ./dynamic_conf.yml:/dynamic_conf.yml
- ./acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
labels:
- "traefik.enable=true"
- "traefik.backend=dashboard"
- "traefik.frontend.rule=Host:dashboard.traefik.moritzvd.com"
- "traefik.port=8080"
whoami:
image: containous/whoami
container_name: whoami
restart: unless-stopped
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami-secure.entrypoints=https"
- "traefik.http.routers.whoami-secure.rule=Host(`whoami.traefik.moritzvd.com`)"
- "traefik.http.routers.whoami-secure.tls.certresolver=myhttpchallenge"
httpd:
image: httpd:alpine
container_name: httpd
restart: unless-stopped
volumes:
- ./htdocs:/usr/local/apache2/htdocs/
- /etc/localtime:/etc/localtime:ro
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.httpd-secure.entrypoints=https"
- "traefik.http.routers.httpd-secure.rule=Host(`traefik.moritzvd.com`)"
- "traefik.http.routers.httpd-secure.middlewares=httpd-security"
- "traefik.http.routers.httpd-secure.tls.certresolver=myhttpchallenge"
- "traefik.http.middlewares.httpd-security.headers.browserXSSFilter=true"
- "traefik.http.middlewares.httpd-security.headers.customFrameOptionsValue=SAMEORIGIN"
- "traefik.http.middlewares.httpd-security.headers.forceSTSHeader=true"
- "traefik.http.middlewares.httpd-security.headers.frameDeny=true"
- "traefik.http.middlewares.httpd-security.headers.SSLHost=traefik.moritzvd.com"
- "traefik.http.middlewares.httpd-security.headers.SSLRedirect=true"
- "traefik.http.middlewares.httpd-security.headers.STSIncludeSubdomains=true"
- "traefik.http.middlewares.httpd-security.headers.STSSeconds=63072000"
networks:
web:
name: web
driver: bridge