-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
112 lines (107 loc) · 2.55 KB
/
docker-compose.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.7'
services:
cidhookd:
image: jchancehud/cidhookd:latest
deploy:
endpoint_mode: dnsrr
replicas: 1
placement:
constraints:
- node.role != manager
volumes:
- "/mnt/volume2/jsipfs:/root/.jsipfs"
- "/mnt/volume2/ipfs:/root/.ipfs"
secrets:
- cidhook_secret
# environment:
# - CIDHOOK_SECRET_PATH=/run/secrets/cidhook_secret
ports:
- target: 4001
published: 4001
protocol: tcp
mode: host
dnslink-cid-badge:
image: ctheory/dnslink-cid-badge:latest
deploy:
endpoint_mode: dnsrr
replicas: 1
placement:
constraints:
- node.role != manager
resources:
limits:
cpus: '0.1'
memory: 64M
nginx:
image: jchancehud/alpine-nginx:latest
depends_on:
- cidhookd
- dnslink-cid-badge
deploy:
replicas: 1
placement:
constraints:
- node.role != manager
secrets:
- commontheory_cert.pem
- commontheory_privkey.pem
- commontheory_fullchain.pem
- ctheory_cert.pem
- ctheory_privkey.pem
- ctheory_fullchain.pem
environment:
- CONFIG_URL=https://raw.githubusercontent.com/common-theory/blueprint/master/nginx.conf
ports:
- target: 80
published: 80
protocol: tcp
mode: ingress
- target: 443
published: 443
protocol: tcp
mode: ingress
rinkeby:
image: ethereum/client-go:latest
command: --rinkeby --datadir=/data --rpc --rpcaddr 0.0.0.0 --rpcvhosts "*" --rpccorsdomain "*"
deploy:
endpoint_mode: dnsrr
replicas: 0
placement:
constraints:
- node.labels.rinkeby == 1
resources:
reservations:
memory: 1024M
volumes:
- "/mnt/volume2/rinkeby:/data"
homestead:
image: ethereum/client-go:latest
command: --datadir=/data --rpc --rpcaddr 0.0.0.0 --rpcvhosts "*" --rpccorsdomain "*"
deploy:
endpoint_mode: dnsrr
replicas: 0
placement:
constraints:
- node.labels.homestead == 1
resources:
reservations:
memory: 1024M
volumes:
- "/mnt/volume2/homestead:/data"
secrets:
commontheory_cert.pem:
external: true
commontheory_privkey.pem:
external: true
commontheory_fullchain.pem:
external: true
ctheory_cert.pem:
external: true
ctheory_privkey.pem:
external: true
ctheory_fullchain.pem:
external: true
eosio_key:
external: true
cidhook_secret:
external: true