docker-compose.yml 554 B

12345678910111213141516171819202122232425
  1. version: "3"
  2. services:
  3. serverstatus:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. image: serverstatus_server
  8. container_name: serverstatus
  9. restart: unless-stopped
  10. networks:
  11. serverstatus-network:
  12. ipv4_address: 172.23.0.2
  13. volumes:
  14. - ./server/config.json:/ServerStatus/server/config.json
  15. - ./web/json:/usr/share/nginx/html/json
  16. ports:
  17. - 35601:35601
  18. - 8080:80
  19. networks:
  20. serverstatus-network:
  21. name: serverstatus-network
  22. ipam:
  23. config:
  24. - subnet: 172.23.0.0/24