-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (86 loc) · 2.48 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
services:
# application service
backend:
build:
context: .
dockerfile: Dockerfile
command: pnpm run start
working_dir: /app/backend
environment:
- YAGNA_APPKEY=66667777888
- YAGNA_API_URL=http://yagna:7465
- JWT_SECRET=dup]a
- JWT_TOKEN_EXPIRATION=1d
- JWT_REFRESH_TOKEN_EXPIRATION=7d
- JWT_ISSUER=golem.network
- MONGO_URI=mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASSWORD}@mongo:27017/
- HOST=0.0.0.0
- PORT=5174
- DB_NAME=depositDB
- DEPOSIT_CONTRACT_ADDRESS=0xb9919c8D8D384d93C195503064A3b303Ea8Fdbaa
ports:
- "5174:5174"
depends_on:
- yagna
- mongo
frontend:
build:
context: .
dockerfile: Dockerfile
command: pnpm run start
working_dir: /app/frontend
environment:
- YAGNA_APPKEY=${YAGNA_APPKEY}
- YAGNA_API_URL=http://yagna:7465
- JWT_SECRET=dup]a
- JWT_TOKEN_EXPIRATION=1d
- JWT_REFRESH_TOKEN_EXPIRATION=7d
- JWT_ISSUER=golem.network
- MONGO_URI=mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASSWORD}@mongo:27017/
- HOST=0.0.0.0
- PORT=5174
- DB_NAME=depositDB
- DEPOSIT_CONTRACT_ADDRESS=0xb9919c8D8D384d93C195503064A3b303Ea8Fdbaa
ports:
- "3000:3000"
depends_on:
- backend
# yagna service
yagna:
build:
context: ./deploy/yagna
dockerfile: Dockerfile
args:
- YAGNA_VERSION=pre-rel-v0.16.0-preview.deposits.3
command: yagna service run
environment:
- YAGNA_AUTOCONF_APPKEY=${YAGNA_APPKEY}
- YAGNA_AUTOCONF_ID_SECRET=${YAGNA_PRIVATE_KEY}
- YAGNA_API_URL=http://0.0.0.0:7465
- SUBNET=${SUBNET}
- YA_NET_BIND_URL=udp://0.0.0.0:0
# mongo service
mongo:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=project
ports:
- "27017:27017"
# mongo express service
mongo-express:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN=false
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_MONGODB_AUTH_USERNAME=${MONGO_ROOT_USER}
- ME_CONFIG_MONGODB_AUTH_PASSWORD=${MONGO_ROOT_PASSWORD}
- ME_CONFIG_BASICAUTH_USERNAME=${MONGOEXPRESS_LOGIN}
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGOEXPRESS_PASSWORD}
depends_on:
- mongo
ports:
- "8888:8081"