-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
88 lines (82 loc) · 2.47 KB
/
docker-compose.prod.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
version: '3.5'
volumes:
traefik-ssl:
driver: local
redis_data:
driver: local
networks:
overlay:
services:
traefik:
image: traefik:1.7
command:
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/etc/traefik/acme/acme.json"
- "--acme.entryPoint=https"
- "--acme.httpChallenge.entryPoint=http"
- "--acme.onHostRule=true"
- "--acme.onDemand=false"
- "--acme.acmeLogging=true"
- "--docker"
- "--docker.domain=cheezedao.com"
- "--docker.watch"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik-ssl:/etc/traefik/acme
networks:
- overlay
ports:
- target: 80
published: 80
- target: 443
published: 443
frontend:
build:
context: ./client
dockerfile: Dockerfile-prod
args:
VUE_APP_GRAPHQL_ENDPOINT_URL: "wss://cheezedao.com/graphql"
VUE_APP_ETH_NETWORK: "rinkeby"
networks:
- overlay
labels:
traefik.frontend.rule: "Host:cheezedao.com,www.cheezedao.com"
traefik.frontend.redirect.regex: "^https?://www.cheezedao.com/(.*)"
traefik.frontend.redirect.replacement: "https://cheezedao.com/$${1}"
traefik.port: '80'
api:
build:
context: ./contracts
restart: always
networks:
- overlay
environment:
ETH_NETWORK: "rinkeby"
# GANACHE
GANACHE_URL: "http://ganache:8545"
URL_ETHEREUM_HTTP_PROVIDER_DEVELOPMENT: "http://ganache:8545"
URL_ETHEREUM_WS_PROVIDER_DEVELOPMENT: "wss://ganache:8545"
# RINKEBY
MNEMONIC_TRUFFLE_RINKEBY: ""
PK_TRUFFLE_RINKEBY: ""
HDWALLET_ADDRESS_RINKEBY: ""
URL_ETHEREUM_HTTP_PROVIDER_RINKEBY: "https://rinkeby.infura.io/v3/3f9d1321a68b41a092b3b4e404d3e537"
URL_ETHEREUM_WS_PROVIDER_RINKEBY: "https://rinkeby.infura.io/v3/3f9d1321a68b41a092b3b4e404d3e537"
# KOVAN
MNEMONIC_TRUFFLE_KOVAN: ""
PK_TRUFFLE_KOVAN: ""
HDWALLET_ADDRESS_KOVAN: ""
URL_ETHEREUM_HTTP_PROVIDER_KOVAN: "https://kovan.infura.io/v3/3f9d1321a68b41a092b3b4e404d3e537"
URL_ETHEREUM_WS_PROVIDER_KOVAN: "wss://kovan.infura.io/v3/3f9d1321a68b41a092b3b4e404d3e537"
redis:
image: redis:latest
networks:
- overlay
volumes:
- type: volume
source: redis_data
target: /data