forked from WebOfTrust/cardano-backer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-traefik.yaml
64 lines (61 loc) · 1.85 KB
/
docker-compose-traefik.yaml
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
version: '3.9'
volumes:
keri-data:
traefik-letsencrypt:
services:
cardano-backer:
restart: unless-stopped
build:
context: .
target: cardano-backer
env_file: .env
environment:
- PYTHONUNBUFFERED=1
volumes:
- keri-data:/usr/local/var/keri
ports:
- 5665:5665
- 5666:5666
labels:
- "traefik.enable=true"
- "traefik.http.routers.backer.rule=Host(`${BACKER_HOST:-cardano-backer}`)"
- "traefik.http.routers.backer.entrypoints=websecure"
- "traefik.http.routers.backer.tls.certresolver=myresolver"
- "traefik.http.services.backer.loadbalancer.server.port=5666"
cardano-agent:
restart: unless-stopped
build:
context: .
target: cardano-agent
env_file: .env
environment:
- PYTHONUNBUFFERED=1
volumes:
- keri-data:/usr/local/var/keri
ports:
- 5971:5971
- 5972:5972
labels:
- "traefik.enable=true"
- "traefik.http.routers.agent.rule=Host(`${AGENT_HOST:-cardano-agent}`)"
- "traefik.http.routers.agent.entrypoints=websecure"
- "traefik.http.routers.agent.tls.certresolver=myresolver"
- "traefik.http.services.agent.loadbalancer.server.port=5972"
traefik:
image: "traefik:v2.9"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
- "80:80"
volumes:
- traefik-letsencrypt:/letsencrypt
- "/var/run/docker.sock:/var/run/docker.sock:ro"