version: '3' services: api: build: ./myems-api command: gunicorn app:api -b 0.0.0.0:8000 network_mode: "host" restart: always 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 admin: build: ./admin 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