-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (58 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
58 lines (58 loc) · 1.3 KB
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
version: '3'
services:
eosio-cdt:
image: eostudio/eosio.cdt:v1.7.0
container_name: 'eosio-cdt'
volumes:
- ./:/var/repo
eosio:
build:
context: ./blockchain
dockerfile: Dockerfile-eosio
container_name: 'eosio'
ports:
- 8888:8888
volumes:
- ./:/var/repo
- ./temp/eosio:/data
mongo:
image: mongo:latest
container_name: 'mongodb'
ports:
- 27017:27017
environment:
- MONGO_DATA_DIR=/data
- MONGO_LOG_DIR=/data-logs
- MONGODB_USER="user"
- MONGODB_PASS="pass"
volumes:
- ./temp/mongo/db:/data/db
- ./temp/mongo/configdb:/data/configdb
- ./temp/mongo/logs:/data-logs
back-end:
build:
context: ./back-end
dockerfile: Dockerfile-nodemon
container_name: 'back-end'
ports:
- 4000:4000
volumes:
- ./:/var/repo
- ./temp/back-end:/data
working_dir: /var/repo/back-end
command: sh -c 'npm run-script docker >> /data/nodejs.log 2>&1'
# extra_hosts:
# - "mongodb:127.0.0.1"
front-end:
build:
context: ./front-end
dockerfile: Dockerfile-react
container_name: 'front-end'
environment:
- NODE_ENV=$NODE_ENV
ports:
- 3000:3000
- 5000:5000
volumes:
- ./:/var/repo
- ./temp/front-end:/data