This repository has been archived by the owner on Jul 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.docker-compose.yml
81 lines (74 loc) · 1.75 KB
/
development.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
version: '3'
services:
daemon:
build:
context: daemon/.
dockerfile: controller.development.Dockerfile
hostname: daemon
volumes:
- ./daemon:/usr/src/app/daemon
- ./proto:/usr/src/app/daemon/proto
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- RACK_ENV=development
- DATABASE_URL=mysql2://root:miningctl@db:3306/miningctl
- CIPHER=AES-256-CBC
- RSA_KEY_SIZE=4096
- CA_CERT_NAME=/CN=Mining Controller CA/DC=phala
- DAEMON_CERT_NAME=/CN=Mining Controller Daemon/DC=phala
- PHALA_NODE_URL_FOR_WORKERS=ws://192.168.89.128:9944
depends_on:
- redis
- db
- phala-node
- cproxy
ports:
- '9292:9292'
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
restart: always
hostname: redis
volumes:
- 'redis-data:/data'
ports:
- '63791:6379' # debug
db:
build: mysql/.
hostname: db
command: [--default-authentication-plugin=mysql_native_password]
volumes:
- 'db-data:/var/lib/mysql'
ports:
- '33061:3306' # debug
environment:
- MYSQL_ROOT_PASSWORD=miningctl
- MYSQL_DATABASE=miningctl
phala-node:
image: phalanetwork/phala-poc3-node:latest
hostname: phala-node
environment:
- NODE_NAME=phala-dev-mining
volumes:
- 'node-data:/root/data'
ports:
- '9944:9944' # debug
cproxy:
build:
context: cproxy/.
dockerfile: development.Dockerfile
hostname: cproxy
volumes:
- './cproxy:/usr/src/app/cproxy'
environment: []
depends_on:
- redis
- phala-node
ports:
- '9229:9229' # debug
- '7070:7070' # debug
volumes:
db-data:
redis-data:
node-data: