-
Notifications
You must be signed in to change notification settings - Fork 149
/
docker-compose-on-linux.yml
49 lines (44 loc) · 1.04 KB
/
docker-compose-on-linux.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
version: '3.8'
services:
api:
build: ./myems-api
command: gunicorn app:api -b 0.0.0.0:8000 --timeout 600 --workers=4
volumes:
- /myems-upload:/var/www/myems-admin/upload
restart: always
ports:
- "8000:8000"
aggregation:
build: ./myems-aggregation
command: python main.py
restart: always
cleaning:
build: ./myems-cleaning
command: python main.py
restart: always
modbus_tcp:
build: ./myems-modbus-tcp
command: python main.py
restart: always
normalization:
build: ./myems-normalization
command: python main.py
restart: always
admin:
build: ./myems-admin
command: nginx -c /etc/nginx/nginx.conf -g "daemon off;"
healthcheck:
test: [ "CMD","nginx","-t" ]
volumes:
- /myems-upload:/var/www/myems-admin/upload
restart: always
ports:
- "8001:8001"
web:
build: ./myems-web
command: nginx -c /etc/nginx/nginx.conf -g "daemon off;"
healthcheck:
test: [ "CMD","nginx","-t" ]
restart: always
ports:
- "80:80"