docker-compose.yml 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. volumes:
  41. mongo-data:
  42. driver: local
  43. redis_data:
  44. driver: local
  45. networks:
  46. infisical:
  47. driver: bridge