-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (91 loc) · 2.04 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '2'
networks:
data:
driver: bridge
web:
driver: bridge
services:
mongo:
container_name: ${APP_TITLE}-${DB_NAME}
image: ${APP_TITLE}/mongo
labels:
com.singularjs.db: ${DB_NAME}
build:
context: .
dockerfile: ./docker/dockerfiles/${NODE_ENV}/mongo.dockerfile
command: "--auth"
expose:
- "27017"
volumes:
- /data/${DB_PATH}:/data/${DB_NAME}:rw
networks:
- data
api:
container_name: ${APP_TITLE}-api
image: ${APP_TITLE}/api
build:
context: .
dockerfile: ./docker/dockerfiles/${NODE_ENV}/api.dockerfile
depends_on:
- mongo
ports:
- "3000:3000"
env_file:
- ./docker/env/${NODE_ENV}/api.env
environment:
- NODE_ENV=${NODE_ENV}
volumes:
- "./api/dev/root.js:/usr/app/root.js"
- "./public:/public"
working_dir: "/usr/app"
tty: true
logging:
driver: "json-file"
options:
max-size: "50k"
max-file: "1"
networks:
- data
- web
upload:
container_name: ${APP_TITLE}-upload
image: ${APP_TITLE}/upload
build:
context: .
dockerfile: ./docker/dockerfiles/${NODE_ENV}/upload.dockerfile
depends_on:
- mongo
ports:
- "3001:3000"
env_file:
- ./docker/env/${NODE_ENV}/upload.env
environment:
- NODE_ENV=${NODE_ENV}
volumes:
- "./upload/dev/root.js:/usr/app/root.js"
- "./public:/public"
working_dir: "/usr/app"
tty: true
logging:
driver: "json-file"
options:
max-size: "50k"
max-file: "1"
networks:
- web
platform:
container_name: ${APP_TITLE}-platform
image: ${APP_TITLE}/platform
build:
context: .
dockerfile: ./docker/dockerfiles/${NODE_ENV}/platform.dockerfile
depends_on:
- api
ports:
- "8082:80"
volumes:
- "./docker/config/development/platform.conf:/etc/nginx/nginx.conf"
- "./platform/dev:/usr/share/nginx/html"
working_dir: "/usr/share/nginx/html"
networks:
- web