docker-compose.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. services:
  2. nginx-ui:
  3. build: .
  4. image: nginx-ui-dev
  5. container_name: nginx-ui
  6. volumes:
  7. - ~/.ssh:/root/.ssh
  8. - ../..:/workspaces:cached
  9. - go-modules:/root/go
  10. - ./data/nginx:/etc/nginx
  11. - ./data/nginx-logs:/var/log/nginx
  12. - /var/run/docker.sock:/var/run/docker.sock
  13. command: sleep infinity
  14. environment:
  15. - NGINX_UI_CERT_CA_DIR=https://pebble:14000/dir
  16. networks:
  17. nginxui:
  18. nginx-ui-2:
  19. image: nginx-ui-dev
  20. container_name: nginx-ui-2
  21. volumes:
  22. - ../..:/workspaces:cached
  23. - ./data/nginx-ui-2/nginx:/etc/nginx
  24. - ./data/nginx-ui-2/nginx-ui:/etc/nginx-ui
  25. working_dir: /workspaces/nginx-ui
  26. command: ./.devcontainer/node-supervisor.sh
  27. depends_on:
  28. - nginx-ui
  29. networks:
  30. nginxui:
  31. nginx-ui-3:
  32. image: nginx-ui-dev
  33. container_name: nginx-ui-3
  34. environment:
  35. - NGINX_UI_OFFICIAL_DOCKER=true
  36. volumes:
  37. - ../..:/workspaces:cached
  38. - ./data/nginx-ui-3/nginx:/etc/nginx
  39. - ./data/nginx-ui-3/nginx-ui:/etc/nginx-ui
  40. - /var/run/docker.sock:/var/run/docker.sock
  41. working_dir: /workspaces/nginx-ui
  42. command: ./.devcontainer/node-supervisor.sh
  43. depends_on:
  44. - nginx-ui
  45. networks:
  46. nginxui:
  47. nginx:
  48. image: nginx-ui-dev
  49. container_name: nginx
  50. volumes:
  51. - ./data/nginx-ui-3/nginx:/etc/nginx
  52. command: sleep infinity
  53. networks:
  54. nginxui:
  55. pebble:
  56. image: ghcr.io/letsencrypt/pebble:latest
  57. volumes:
  58. - ./pebble-test:/test
  59. command: -config /test/config/pebble-config.json -strict -dnsserver challtestsrv:8053
  60. ports:
  61. - 14000:14000 # HTTPS ACME API
  62. - 15000:15000 # HTTPS Management API
  63. environment:
  64. - PEBBLE_VA_NOSLEEP=1
  65. - PEBBLE_VA_ALWAYS_VALID=1
  66. - PEBBLE_WFE_NONCEREJECT=0
  67. networks:
  68. nginxui:
  69. challtestsrv:
  70. image: ghcr.io/letsencrypt/pebble-challtestsrv:latest
  71. command: -defaultIPv6 "" -defaultIPv4 challtestsrv
  72. ports:
  73. - 8055:8055 # HTTP Management API
  74. networks:
  75. nginxui:
  76. casdoor:
  77. image: casbin/casdoor-all-in-one
  78. ports:
  79. - 8001:8000
  80. networks:
  81. - nginxui
  82. networks:
  83. nginxui:
  84. volumes:
  85. go-modules: