-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (99 loc) · 2.85 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
router:
image: traefik:latest
container_name: router
ports:
- 80:80
- 443:443
restart: always
depends_on:
- watchtower
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- ./traefik-acme:/acme
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.web.acme.storage=/acme/certs.json"
- "--certificatesresolvers.web.acme.httpchallenge.entrypoint=web"
labels:
- "traefik.enable=false"
- "com.centurylinklabs.watchtower.scope=proxy"
couchdb:
image: couchdb:latest
container_name: couchdb
ports:
- 5984:5984
restart: always
depends_on:
- router
- watchtower
env_file:
- ./.env
environment:
COUCHDB_USER: ${COUCHDB_USER}
COUCHDB_PASSWORD: ${COUCHDB_PASSWORD}
volumes:
- ./dbdata:/opt/couchdb/data
- ./dbconfig:/opt/couchdb/etc/local.d
labels:
- "traefik.enable=false"
- "com.centurylinklabs.watchtower.scope=proxy"
didkit:
image: ghcr.io/spruceid/didkit-http:latest
container_name: didkit
restart: always
ports:
- 3000:3000
depends_on:
- router
- watchtower
env_file:
- ./.env
labels:
- "traefik.enable=false"
- "com.centurylinklabs.watchtower.scope=proxy"
proxy:
image: shihjay2/trusteeproxy
container_name: proxy
links:
- couchdb
- didkit
restart: always
depends_on:
- couchdb
- router
- watchtower
env_file:
- ./.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_default"
- "traefik.http.services.proxy.loadbalancer.server.port=4000"
- "traefik.http.routers.app.entrypoints=web"
- "traefik.http.routers.app.rule=Host(`example.com`)"
- "traefik.http.middlewares.app-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.app.middlewares=app-https-redirect"
- "traefik.http.routers.app-secure.entrypoints=websecure"
- "traefik.http.routers.app-secure.rule=Host(`exmaple.com`)"
- "traefik.http.routers.app-secure.tls=true"
- "traefik.http.routers.app-secure.tls.certresolver=web"
- "traefik.http.routers.app-secure.service=app"
- "com.centurylinklabs.watchtower.scope=proxy"
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --scope proxy --cleanup
labels:
- "traefik.enable=false"
networks:
traefik_default:
external: true