-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
116 lines (106 loc) · 3.54 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ezmaster docker-compose dedicated for production
version: '3.4'
services:
ezmaster-api:
container_name: ezmaster-api
image: inistcnrs/ezmaster:5.3.1-api
links:
- ezmaster_db
volumes:
- ./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/
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
NODE_ENV: "production"
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}
DEBUG: ${DEBUG}
tty: true # to have nice debug(...) outputs
stdin_open: true # to be able to use CTRL+C to stop the debug
ports:
- 35269:35269
networks:
- eznetwork
# Restarts ezmaster when the host server reboot
# or if ezmaster nodejs process crashes.
restart: unless-stopped
ezmaster-front:
container_name: ezmaster-front
image: inistcnrs/ezmaster:5.3.1-front
environment:
EZMASTER_USER: ${EZMASTER_USER}
EZMASTER_PASSWORD: ${EZMASTER_PASSWORD}
EZMASTER_UPLOAD_MAX_BODY_SIZE: ${EZMASTER_UPLOAD_MAX_BODY_SIZE}
links:
- ezmaster-api
volumes:
- ./logs/ezmaster-front/:/var/log/nginx/ezmaster-front/
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
restart: unless-stopped
ezmaster-rp:
container_name: ezmaster-rp
image: inistcnrs/ezmaster:5.3.1-rp
environment:
EZMASTER_UPLOAD_MAX_BODY_SIZE: ${EZMASTER_UPLOAD_MAX_BODY_SIZE}
volumes:
- ./logs/ezmaster-rp/:/var/log/nginx/ezmaster-rp/
- 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
restart: unless-stopped
# webdav access point for ezmaster's instances data folder (using apache2)
ezmaster-webdav:
container_name: ezmaster-webdav
image: inistcnrs/ezmaster:5.3.1-webdav
volumes:
- ./data/instances/:/usr/local/apache2/htdocs/
- ./logs/ezmaster-webdav/:/var/log/apache2/
environment:
EZMASTER_USER: ${EZMASTER_USER}
EZMASTER_PASSWORD: ${EZMASTER_PASSWORD}
ports:
- 35270:35270
networks:
- eznetwork
restart: unless-stopped
# Mongodb used by ezmaster to store parameters, metadata etc...
# about ezmaster apps and instances
# it will be deprecated (removed) in ezmaster v5
ezmaster_db:
container_name: ezmaster_db
image: mongo:3.4.1
command: --smallfiles
# Restarts mongodb if the host server reboot
restart: unless-stopped
networks:
- eznetwork
networks:
eznetwork:
driver: bridge
# shared volume used to exchange nginx
# vhost config for dynamic ezmaster's instances
volumes:
ezmaster-rp-nginx-data: