docker-compose.yml 1.4 KB

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