/
docker-compose.yml
47 lines (44 loc) · 1009 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
46
47
version: "3"
services:
onb_server:
build: .
restart: always
volumes:
- /etc/onboarding_server:/config
- /var/log/onboarding_server:/log
command:
- "--keystore-file"
- "/config/keystore"
- "--password"
- "${KEYSTORE_PASSWORD}"
- "--eth-rpc-url"
- "${ETH_RPC_URL}"
- "--token-address"
- "${TOKEN_ADDRESS}"
- "--bind-addr"
- "0.0.0.0:80"
- "--public-url"
- "${PUBLIC_URL}"
- "--redis-host"
- "redis"
- "--log-path"
- "/log"
- "--tx-timeout"
- "${TX_TIMEOUT}"
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.frontend.rule=Host:${SERVER_NAME}"
redis:
restart: always
image: redis:latest
traefik:
image: traefik:1.7
restart: always
ports:
- 80:80
- 443:443
volumes:
- /etc/traefik:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock
command: --acme.email=${LETSENCRYPT_EMAIL}