-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1010 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
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.3'
services:
gateway:
image: traefik:latest
command:
- "--api"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--docker"
- "--docker.watch"
- "--docker.domain=${DOMAIN}"
- "--accesslog"
- "--traefikLog"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
passport:
image: zhongl/passport:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
traefik.port: 8080
traefik.frontend.rule: "HostRegexp: {subdomain:[a-z]+}.${DOMAIN}"
environment:
JAVA_TOOL_OPTIONS: -Dconfig.file=/run/secrets/conf
DOMAIN: $DOMAIN
secrets:
- conf
echo:
image: zhongl/passport:latest
command:
- "-e"
labels:
passport.rule: "www.${DOMAIN}"
passport.port: 8080
secrets:
conf:
file: ./app.conf