-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
48 lines (47 loc) · 1 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
# To build and launch (first time):
# $ docker-compose up -d
# To create new images (--no-cache) to force building from scratch:
# $ docker-compose build
# To launch again (leave out -d for non daemon launch):
# $ docker-compose up -d
# To stop containers:
# $ docker-compose stop
version: '3'
networks:
workers:
driver: bridge
internal: true
database:
driver: bridge
services:
webgme:
build: .
depends_on:
- mongo
environment:
- NODE_ENV=dockercompose
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8888:8888
networks:
- database
- workers
mongo:
image: mongo
# ports:
# - 27017:27017
# volumes:
# - ~/data/db:/data/db
networks:
- database
dss-worker:
image: dss-worker
build:
context: .
dockerfile: DockerfileJMod
command: ["cat", "/dev/null"] # A no-op command so the image is built.
environment:
- NODE_ENV=dockercompose
networks:
- workers