-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (73 loc) · 1.45 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
version: '3.1'
networks:
back:
driver: bridge
ipam:
config:
- subnet: 192.168.10.0/24
gateway: 192.168.10.1
services:
mongo:
image: mongo
restart: "no"
ports:
- 27017:27017
networks:
- back
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
# eth-client:
# image: ethereum/client-go:latest
# hostname: geth
# ports:
# - "30303:30303"
# expose:
# - "8545"
# - "8546"
# - "6060"
# - "8080"
# networks:
# - back
# volumes:
# - ~/Library/Ethereum:/root/.ethereum/
# command:
# - --ropsten
## - --light.serve=20
# - --syncmode
# - "fast"
## - --rpc
# - --ws
# - --ws.port=8546
# - --ws.addr=0.0.0.0
# - --ws.api
# - admin,debug,web3,eth,txpool,personal,ethash,net
# - --ws.origins="*"
# - --metrics
# - --metrics.addr=0.0.0.0
# - --metrics.port=6060
app:
image: blockchain-service
ports:
- 8080:8080
networks:
- back
env_file:
- config-dev/blockchain-service.env
environment:
RUN_ENV: "${RUN_ENV}"
depends_on:
- mongo
mongo-express:
image: mongo-express
restart: "no"
ports:
- 8081:8081
networks:
- back
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
depends_on:
- mongo
profiles: ["dev"]