version: '3.8' services: api: build: ./myems-api command: gunicorn app:api -b 0.0.0.0:8000 --timeout 600 --workers=4 volumes: - type: bind source: c:\upload target: /var/www/html/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: ./admin command: nginx -c /etc/nginx/nginx.conf -g "daemon off;" healthcheck: test: [ "CMD","nginx","-t" ] volumes: - type: bind source: c:\upload target: /var/www/html/admin/upload restart: always ports: - "8001:8001" web: build: ./web command: nginx -c /etc/nginx/nginx.conf -g "daemon off;" healthcheck: test: [ "CMD","nginx","-t" ] restart: always ports: - "80:80"