-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.47 KB
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
services:
trust_ip:
image: bpmbee/trust_ip:2.0.3
build:
context: ./
dockerfile: ./Dockerfile
ports:
- 8080:8080/tcp
environment:
- WHITELIST=127.0.0.1,192.168.1.79
- ATLASSIAN_IP_URL=https://ip-ranges.atlassian.com
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "4"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.trust_ip.forwardauth.address=http://trust_ip:8080"
- "traefik.http.services.trust_ip.loadbalancer.server.port=8080"
- "traefik.http.middlewares.trust_ip.forwardauth.authResponseHeaders=X-Forwarded-For"
restart: unless-stopped
whoami:
image: traefik/whoami:latest
environment:
- TZ=Europe/Amsterdam
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "4"
labels:
- APP=Atlantis
- traefik.enable=true
- traefik.http.routers.atlantis.rule=Host(`whoami.example.com`)
- traefik.http.routers.atlantis.entrypoints=websecure
- traefik.http.routers.atlantis.tls=true
- traefik.http.routers.atlantis.service=whoami
- traefik.http.services.atlantis.loadbalancer.server.port=80
- traefik.http.services.atlantis.loadbalancer.sticky.cookie=true
- traefik.http.services.atlantis.loadbalancer.sticky.cookie.secure=true
- traefik.http.routers.atlantis.middlewares=trust_ip
restart: unless-stopped