-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
33 lines (31 loc) · 919 Bytes
/
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
version: "3.7"
services:
caddy-gen:
container_name: caddy2-gen
build: .
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./caddy-info:/data/caddy
ports:
- "80:80"
- "443:443"
depends_on:
- whoami
- whoami2
whoami:
image: "katacoda/docker-http-server:v1"
labels:
virtual.host: test1.localhost
# don't forget to set CSP
virtual.proxy.directives: |
header_down strict-transport-security "max-age=63072000; includeSubdomains; preload;"
header_down x-content-type-options "nosniff"
header_down x-frame-options "DENY"
header_down x-xss-protection "1; mode=block"
header_down referrer-policy "same-origin"
header_down cross-origin-opener-policy "same-origin"
whoami2:
image: "katacoda/docker-http-server:v2"
labels:
- "virtual.host=test2.localhost"