myems/docker-compose.yml

55 lines
1.1 KiB
YAML

version: '3'
services:
api:
build: ./myems-api
command: gunicorn app:api -b 0.0.0.0
network_mode: "host"
restart: always
# ports:
# - "8000:8000"
aggregation:
build: ./myems-aggregation
command: python main.py
network_mode: "host"
restart: always
cleaning:
build: ./myems-cleaning
command: python main.py
network_mode: "host"
restart: always
modbus_tcp:
build: ./myems-modbus-tcp
command: python main.py
network_mode: "host"
restart: always
normalization:
build: ./myems-normalization
command: python main.py
network_mode: "host"
restart: always
web-docker:
build:
context: .
dockerfile: Web-Dockerfile
command: nginx -c /etc/nginx/nginx.conf -g "daemon off;"
healthcheck:
test: [ "CMD","nginx","-t" ]
network_mode: "host"
restart: always
# web:
# build: ./web
# command: nginx -c /etc/nginx/nginx.conf -g "daemon off;"
# healthcheck:
# test: [ "CMD","nginx","-t" ]
# network_mode: "host"
# restart: always
# ports:
# - "10001:80"