-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.local.yml
62 lines (62 loc) · 1.3 KB
/
docker-compose.local.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
# 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
# Short command for rebuilding and restarting
# $ docker-compose up -d --build
# To stop containers:
# $ docker-compose stop
# To clean up containers/images/networks:
# $ docker system prune
version: '3'
networks:
frontend:
driver: bridge
database:
driver: bridge
services:
nginx:
build:
context: .
dockerfile: "Dockerfile.nginx.dev"
depends_on:
- studio
volumes:
- ssl:/ssl_certs
networks:
- frontend
ports:
- 80:80
- 443:443
studio:
build:
context: .
dockerfile: "Dockerfile.studio"
depends_on:
- mongo
environment:
- NODE_ENV=docker
volumes:
- ssl:/webgmeshare/ssl_certs
- work:/webgmeshare/work_temp
- keys:/webgmeshare/token_keys
- blob:/webgmeshare/blob-local-storage
- /var/run/docker.sock:/var/run/docker.sock
- ./config:/usr/app/config/
networks:
- database
- frontend
mongo:
image: mongo:3.4.1
volumes:
- db:/data/db
networks:
- database
volumes:
db:
ssl:
work:
keys:
blob: