docker-compose.yml 768 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: "3.7"
  2. services:
  3. plc-connector:
  4. container_name: plc-connector
  5. build: .
  6. restart: on-failure
  7. ports:
  8. - 102:102
  9. volumes:
  10. - ./logs:/app/logs/
  11. - ./config/config.yml:/app/config.yml
  12. networks:
  13. - influxdb
  14. influxdb:
  15. container_name: influxdb
  16. image: influxdb:latest
  17. restart: unless-stopped
  18. ports:
  19. - 8086:8086
  20. networks:
  21. - influxdb
  22. volumes:
  23. - "./conf:/etc/influxdb2"
  24. - "./influxdbv2:/var/lib/influxdb2"
  25. influxdb-replay:
  26. container_name: influxdb-replay
  27. image: influxdb:latest
  28. restart: unless-stopped
  29. networks:
  30. - influxdb
  31. volumes:
  32. - "./influxdbv2-replay:/var/lib/influxdb2"
  33. networks:
  34. influxdb:
  35. name: influxdb