-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.debug.yml
171 lines (159 loc) · 5.39 KB
/
docker-compose.debug.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# ezmaster docker-compose dedicated for development
version: '3.4'
services:
# container used to simulate a big frontal reverse proxy
# (not used in prod)
ezmaster-debug-public-rp:
container_name: ezmaster-debug-public-rp
build:
context: ./ezmaster-debug-public-rp
args:
- http_proxy
- https_proxy
links:
- ezmaster-rp
ports:
- 80:80
networks:
- eznetwork
ezmaster-api:
container_name: ezmaster-api
image: inistcnrs/ezmaster:5.3.1-api
build:
context: ./ezmaster-api
args:
- http_proxy
- https_proxy
links: # will be deprecated in ezmaster v5
- ezmaster_db # will be deprecated in ezmaster v5
volumes:
- ./ezmaster-api:/app
- ./data/applications:/app/data/applications
- ./data/instances:/app/data/instances
- ./data/manifests:/app/data/manifests
- /var/run/docker.sock:/var/run/docker.sock
- ezmaster-rp-nginx-data:/etc/nginx/conf.d/
working_dir: /app
environment:
EZMASTER_USER: ${EZMASTER_USER}
EZMASTER_PASSWORD: ${EZMASTER_PASSWORD}
EZMASTER_MONGODB_HOST_PORT: "ezmaster_db:27017" # will be deprecated in ezmaster v5
EZMASTER_PUBLIC_IP : ${EZMASTER_PUBLIC_IP}
EZMASTER_FREE_PORT_RANGE : ${EZMASTER_FREE_PORT_RANGE}
EZMASTER_PUBLIC_PROTOCOL: ${EZMASTER_PUBLIC_PROTOCOL}
EZMASTER_PUBLIC_DOMAIN: ${EZMASTER_PUBLIC_DOMAIN}
EZMASTER_PATH: ${PWD}
EZMASTER_FULL_FS_PERCENT: ${EZMASTER_FULL_FS_PERCENT}
EZMASTER_HOME_TITLE: ${EZMASTER_HOME_TITLE}
EZMASTER_HOME_DESCRIPTION: ${EZMASTER_HOME_DESCRIPTION}
NODE_ENV: "development"
DEBUG: ${DEBUG}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
tty: true # to have nice debug(...) outputs
stdin_open: true # to be able to use CTRL+C to stop the debug
ports:
- 35269:35269
command: npm run start-debug
networks:
- eznetwork
ezmaster-front:
container_name: ezmaster-front
image: inistcnrs/ezmaster:5.3.1-front
build:
context: ./ezmaster-front
args:
- http_proxy
- https_proxy
environment:
EZMASTER_USER: ${EZMASTER_USER}
EZMASTER_PASSWORD: ${EZMASTER_PASSWORD}
EZMASTER_UPLOAD_MAX_BODY_SIZE: ${EZMASTER_UPLOAD_MAX_BODY_SIZE}
volumes:
- ./ezmaster-front/nginx.debug.conf:/etc/nginx/nginx.conf.orig
- ./logs/ezmaster-front/:/var/log/nginx/ezmaster-front/
links:
- ezmaster-api
- ezmaster-front-debug
tty: true # to have nice debug(...) outputs
stdin_open: true # to be able to use CTRL+C to stop the debug
ports:
- 35268:35268
networks:
- eznetwork
ezmaster-front-debug:
container_name: ezmaster-front-debug
image: node:12.13.0
volumes:
- ./ezmaster-front:/app
working_dir: /app
environment:
NODE_ENV: "development"
DEBUG: ${DEBUG}
tty: true # to have nice debug(...) outputs
stdin_open: true # to be able to use CTRL+C to stop the debug
command: npm run start -y
networks:
- eznetwork
ezmaster-rp:
container_name: ezmaster-rp
image: inistcnrs/ezmaster:5.3.1-rp
build:
context: ./ezmaster-rp
args:
- http_proxy
- https_proxy
environment:
EZMASTER_UPLOAD_MAX_BODY_SIZE: ${EZMASTER_UPLOAD_MAX_BODY_SIZE}
volumes:
- ./logs/ezmaster-rp/:/var/log/nginx/ezmaster-rp/
- ./ezmaster-rp/nginx.conf:/etc/nginx/nginx.conf
- ./ezmaster-rp/index.html:/app/public/index.html
- ./ezmaster-rp/entrypoint.sh:/entrypoint.sh
- ./ezmaster-rp/ezmaster-instance-nginx.conf.tpl:/etc/nginx/ezmaster-instance-nginx.conf.tpl
- ./ezmaster-rp/ezmaster-front-nginx.conf.tpl:/etc/nginx/ezmaster-front-nginx.conf.tpl
- ./ezmaster-rp/ezmaster-webdav-nginx.conf.tpl:/etc/nginx/ezmaster-webdav-nginx.conf.tpl
- ezmaster-rp-nginx-data:/etc/nginx/conf.d/
tty: true # to have nice debug(...) outputs
stdin_open: true # to be able to use CTRL+C to stop the debug
ports:
- 35267:80
networks:
- eznetwork
# webdav access point for ezmaster's instances data folder (using apache2)
ezmaster-webdav:
container_name: ezmaster-webdav
image: inistcnrs/ezmaster:5.3.1-webdav
build:
context: ./ezmaster-webdav
args:
- http_proxy
- https_proxy
volumes:
- ./data/instances/:/usr/local/apache2/htdocs/
- ./logs/ezmaster-webdav/:/var/log/apache2/
- ./ezmaster-webdav/entrypoint.sh:/entrypoint.sh
- ./ezmaster-webdav/httpd-dav.conf.orig:/usr/local/apache2/conf/extra/httpd-dav.conf.orig
environment:
EZMASTER_USER: ${EZMASTER_USER}
EZMASTER_PASSWORD: ${EZMASTER_PASSWORD}
ports:
- 35270:35270
networks:
- eznetwork
ezmaster_db: # will be deprecated in ezmaster v5
container_name: ezmaster_db # will be deprecated in ezmaster v5
image: mongo:3.4.1 # will be deprecated in ezmaster v5
ports: # will be deprecated in ezmaster v5
- 27017:27017 # will be deprecated in ezmaster v5
command: --smallfiles # will be deprecated in ezmaster v5
networks: # will be deprecated in ezmaster v5
- eznetwork # will be deprecated in ezmaster v5
networks:
eznetwork:
driver: bridge
# shared volume used to exchange nginx
# vhost config for dynamic ezmaster's instances
volumes:
ezmaster-rp-nginx-data: