-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.25 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
version: "3.3"
services:
socket-proxy:
user: root
image: tecnativa/docker-socket-proxy
container_name: socket-proxy
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 2375
environment:
- POST=1
- CONTAINERS=1
- IMAGES=1
- VOLUMES=1
- BUILD=1
- SERVICES=1
- TASKS=1
- NETWORKS=1
- NODES=1
- EXEC=1
executor:
container_name: "executor"
build:
context: ./executor
volumes:
- ./executor:/home/app
- /home/app/node_modules
ports:
- "5700:5700"
client:
container_name: "client"
build:
context: ./tryout-client
stdin_open: true
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- REACT_APP_BUILD=development
volumes:
- ./tryout-client:/app
- /app/node_modules
mongodb:
container_name: "mongodb"
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: dev
MONGO_INITDB_ROOT_PASSWORD: dev_password
MONGO_INITDB_DATABASE: tryout_db
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./mongo/mongo-init-dev.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
volumes:
mongodb_data: