docker-compose.test.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: "3.4"
  2. services:
  3. rqlite:
  4. container_name: rqlite
  5. image: rqlite/rqlite
  6. network_mode: host
  7. restart: always
  8. volumes:
  9. - sqldata:/rqlite/file/data
  10. netmaker:
  11. depends_on:
  12. - rqlite
  13. privileged: true
  14. container_name: netmaker
  15. image: gravitl/netmaker:v0.7
  16. volumes:
  17. - ./:/local
  18. - /etc/netclient:/etc/netclient
  19. - /usr/bin/wg:/usr/bin/wg
  20. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
  21. - /run/systemd/system:/run/systemd/system
  22. - /etc/systemd/system:/etc/systemd/system
  23. - /sys/fs/cgroup:/sys/fs/cgroup
  24. cap_add:
  25. - NET_ADMIN
  26. - SYS_MODULE
  27. restart: always
  28. network_mode: host
  29. environment:
  30. GRPC_SSL: "off"
  31. API_PORT: "8081"
  32. GRPC_PORT: "50051"
  33. DNS_MODE: "off"
  34. CORS_ALLOWED_ORIGIN: "*"
  35. netmaker-ui:
  36. container_name: netmaker-ui
  37. depends_on:
  38. - netmaker
  39. image: gravitl/netmaker-ui:v0.7
  40. links:
  41. - "netmaker:api"
  42. ports:
  43. - "80:80"
  44. environment:
  45. BACKEND_URL: "http://HOST_IP:8081"
  46. volumes:
  47. sqldata: {}