forked from omidsmartdeveloper/doichain-dapp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-email-doi-testnet.yml
107 lines (100 loc) · 2.67 KB
/
docker-compose-email-doi-testnet.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
version: '3.7'
services:
nginx:
image: nginx:1.22.0
depends_on:
- certbot
- dapp
environment:
- SERVER_NAME=${SERVER_NAME}
- DAPP_PORT=${DAPP_PORT}
ports:
- 80:80
- "443:443"
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template
- ./nginx/docker-entrypoint.d/:/docker-entrypoint.d/
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/docker-entrypoint.sh"
command: ["nginx"]
certbot:
image: certbot/certbot:v1.32.0
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
doichain-testnet:
image: "doichain/core:dc0.20.1.13"
container_name: doichain-testnet
hostname: doichain-testnet
ports:
- "18339:18339"
volumes:
- doichain-volume:/home/doichain/data
environment:
- TESTNET=true
- CONNECTION_NODE=157.90.175.84
- DAPP_URL=http://dapp:3000
- RPC_USER=${RPC_USER}
- RPC_PASSWORD=${RPC_PASSWORD}
- RPC_ALLOW_IP=0.0.0.0/0 #::/0
stdin_open: true
tty: true
networks:
static-network:
ipv4_address: 172.20.0.16
dapp:
image: doichain/dapp:v0.0.9.117
depends_on:
- mongo
- doichain-testnet
container_name: dapp
hostname: dapp
build: ./dapp
ports:
- "4000:3000"
volumes:
- dapp-volume:/home/doichain/data
- doichain-volume:/home/doichain/.doichain
environment:
- DOICHAIN_DAPP_VER=v0.0.9.117
- MONGO_URL="mongodb://mongo:27017"
- DAPP_HOST=${SERVER_NAME}
- DAPP_PORT=443
- RPC_HOST=${RPC_HOST}
- RPC_PORT=18339
- RPC_USER=${RPC_USER}
- RPC_PASSWORD=${RPC_PASSWORD}
- DAPP_SMTP_USER=${DAPP_SMTP_USER}
- DAPP_SMTP_HOST=${DAPP_SMTP_HOST}
- DAPP_SMTP_PASS=${DAPP_SMTP_PASS}
- DAPP_SMTP_PORT=${DAPP_SMTP_PORT}
- DAPP_SMTP_DEFAULT_FROM=${DAPP_SMTP_DEFAULT_FROM}
networks:
static-network:
ipv4_address: 172.20.0.7
mongo:
image: "mongo:3.2"
container_name: mongo
hostname: mongo
expose:
- "27017"
ports:
- "28017:27017"
volumes:
- mongo-volume:/data
networks:
static-network:
ipv4_address: 172.20.0.9
volumes:
doichain-volume:
dapp-volume:
mongo-volume:
networks:
static-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16