-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (100 loc) · 2.43 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
100
101
102
103
104
105
106
107
108
version: '3.8'
services:
# Reverse Proxy
nginx-proxy:
image: nginxproxy/nginx-proxy:1.0
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html
networks:
- app-network
acme-companion:
image: nginxproxy/acme-companion:2.2
container_name: nginx-proxy-acme
restart: always
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
networks:
- app-network
# Services
storage-node:
container_name: storage-node
restart: always
build:
context: .
dockerfile: storage-node/Dockerfile
depends_on:
- sequencer
networks:
- app-network
environment:
- PORT=3001
- SEQUENCER_URL=http://sequencer-node:3000
- NODE_SK=
- VIRTUAL_HOST=node.ss.testnet.zeropool.network
- LETSENCRYPT_HOST=node.ss.testnet.zeropool.network
volumes:
- node_data:/app/storage-node/data
sequencer:
container_name: sequencer
restart: always
build:
context: .
dockerfile: sequencer/Dockerfile
networks:
- app-network
environment:
- PORT=3000
- OPERATOR_SK=
- RPC_UR=
- MASTER_SK=
- ROLLUP_CONTRACT_ADDRESS=
- MOCK_BLOCKCHAIN=false
- VIRTUAL_HOST=sequencer.ss.testnet.zeropool.network
- LETSENCRYPT_HOST=sequencer.ss.testnet.zeropool.network
volumes:
- sequencer_data:/app/sequencer/data
client-app:
container_name: client-app
depends_on:
- storage-node
- sequencer
restart: always
build:
context: .
dockerfile: client-app/Dockerfile
args:
- PUBLIC_SEQUENCER_API_URL=https://sequencer.ss.testnet.zeropool.network/
- PUBLIC_NODE_API_URL=https://node.ss.testnet.zeropool.network/
networks:
- app-network
environment:
- VIRTUAL_HOST=ss.testnet.zeropool.network
- LETSENCRYPT_HOST=ss.testnet.zeropool.network
volumes:
vhost:
html:
certs:
acme:
conf:
files:
sequencer_data:
node_data:
networks:
app-network:
driver: bridge