docker-compose.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. version: "3"
  2. services:
  3. nginx:
  4. container_name: infisical-nginx
  5. image: nginx
  6. restart: always
  7. ports:
  8. - 80:80
  9. - 443:443
  10. volumes:
  11. - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
  12. depends_on:
  13. - frontend
  14. - backend
  15. networks:
  16. - infisical
  17. backend:
  18. container_name: infisical-backend
  19. restart: unless-stopped
  20. depends_on:
  21. - mongo
  22. image: infisical/backend
  23. env_file: .env
  24. environment:
  25. - NODE_ENV=production
  26. networks:
  27. - infisical
  28. frontend:
  29. container_name: infisical-frontend
  30. restart: unless-stopped
  31. depends_on:
  32. - backend
  33. image: infisical/frontend
  34. env_file: .env
  35. environment:
  36. # - NEXT_PUBLIC_POSTHOG_API_KEY=${POSTHOG_PROJECT_API_KEY}
  37. - INFISICAL_TELEMETRY_ENABLED=${TELEMETRY_ENABLED}
  38. networks:
  39. - infisical
  40. redis:
  41. image: redis
  42. container_name: infisical-dev-redis
  43. environment:
  44. - ALLOW_EMPTY_PASSWORD=yes
  45. ports:
  46. - 6379:6379
  47. networks:
  48. - infisical
  49. volumes:
  50. - redis_data:/data
  51. mongo:
  52. container_name: infisical-mongo
  53. image: mongo:latest
  54. restart: always
  55. env_file: .env
  56. environment:
  57. - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
  58. - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
  59. volumes:
  60. - mongo-data:/data/db
  61. networks:
  62. - infisical
  63. ports:
  64. - "27017:27017"
  65. logging:
  66. driver: 'json-file'
  67. options:
  68. max-size: '30m'
  69. max-file: '1'
  70. volumes:
  71. mongo-data:
  72. driver: local
  73. redis_data:
  74. driver: local
  75. networks:
  76. infisical:
  77. driver: bridge