docker-compose.nodns.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: "3.4"
  2. services:
  3. netmaker:
  4. container_name: netmaker
  5. image: gravitl/netmaker:v0.8.5
  6. volumes:
  7. - /usr/bin/wg:/usr/bin/wg
  8. - sqldata:/root/data
  9. cap_add:
  10. - NET_ADMIN
  11. restart: always
  12. privileged: true
  13. environment:
  14. SERVER_HOST: "SERVER_PUBLIC_IP"
  15. SERVER_API_CONN_STRING: "api.NETMAKER_BASE_DOMAIN:443"
  16. SERVER_GRPC_CONN_STRING: "grpc.NETMAKER_BASE_DOMAIN:443"
  17. COREDNS_ADDR: "SERVER_PUBLIC_IP"
  18. GRPC_SSL: "on"
  19. DNS_MODE: "off"
  20. SERVER_HTTP_HOST: "api.NETMAKER_BASE_DOMAIN"
  21. SERVER_GRPC_HOST: "grpc.NETMAKER_BASE_DOMAIN"
  22. API_PORT: "8081"
  23. GRPC_PORT: "50051"
  24. CLIENT_MODE: "on"
  25. MASTER_KEY: "REPLACE_MASTER_KEY"
  26. SERVER_GRPC_WIREGUARD: "off"
  27. CORS_ALLOWED_ORIGIN: "*"
  28. DATABASE: "sqlite"
  29. ports:
  30. - "51821-51830:51821-51830/udp"
  31. - "8081:8081"
  32. - "50051:50051"
  33. netmaker-ui:
  34. container_name: netmaker-ui
  35. depends_on:
  36. - netmaker
  37. image: gravitl/netmaker-ui:v0.8.5
  38. links:
  39. - "netmaker:api"
  40. ports:
  41. - "8082:80"
  42. environment:
  43. BACKEND_URL: "https://api.NETMAKER_BASE_DOMAIN"
  44. restart: always
  45. caddy:
  46. image: caddy:latest
  47. container_name: caddy
  48. restart: unless-stopped
  49. network_mode: host # Wants ports 80 and 443!
  50. volumes:
  51. - /root/Caddyfile:/etc/caddy/Caddyfile
  52. # - $PWD/site:/srv # you could also serve a static site in site folder
  53. - caddy_data:/data
  54. - caddy_conf:/config
  55. volumes:
  56. caddy_data: {}
  57. caddy_conf: {}
  58. sqldata: {}