production-docker-compose.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. version: '3.4'
  2. services:
  3. app-backend:
  4. restart: always
  5. depends_on:
  6. - postgres
  7. - mongo
  8. container_name: vendimia-backend
  9. build:
  10. context: ./backend
  11. dockerfile: ./Dockerfile
  12. env_file:
  13. - ./.env.production
  14. ports:
  15. - "8000:8000"
  16. app-frontend:
  17. container_name: vendimia-frontend
  18. restart: always
  19. build:
  20. context: ./frontend
  21. dockerfile: ./Dockerfile.production
  22. args:
  23. REACT_APP_API_URL: "https://vendimia.omixom.com/api/v1/"
  24. env_file:
  25. - ./.env.production
  26. ports:
  27. - "3000:80"
  28. mongo:
  29. image: mongo
  30. restart: always
  31. volumes:
  32. - ./mongo_data:/data/db
  33. ports:
  34. - 9019:27017
  35. postgres:
  36. image: postgres
  37. restart: always
  38. env_file:
  39. - postgres.env
  40. volumes:
  41. - ./postgres_data:/var/lib/postgresql/data/
  42. mongoweb:
  43. image: mongoclient/mongoclient
  44. depends_on:
  45. - mongo
  46. environment:
  47. - MONGO_URL="mongodb://mongo:27017"
  48. ports:
  49. - 9006:3000
  50. mongoexpress:
  51. image: mongo-express
  52. depends_on:
  53. - mongo
  54. environment:
  55. - ME_CONFIG_MONGODB_SERVER:"mongo"
  56. ports:
  57. - 9005:8081
  58. admindb:
  59. image: adminer
  60. depends_on:
  61. - postgres
  62. ports:
  63. - 9003:8080