Guest User

Untitled

a guest
Apr 4th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. version: '3'
  2. networks:
  3. dawarich:
  4. services:
  5. dawarich_redis:
  6. image: redis:7.0-alpine
  7. command: redis-server
  8. networks:
  9. - dawarich
  10. volumes:
  11. - /home/pi/docker/dawarich/shared_data:/var/shared/redis
  12. dawarich_db:
  13. image: postgres:14.2-alpine
  14. container_name: dawarich_db
  15. volumes:
  16. - /home/pi/docker/dawarich/db/db_data:/var/lib/postgresql/data
  17. - /home/pi/docker/dawarich/db/shared_data:/var/shared
  18. networks:
  19. - dawarich
  20. environment:
  21. POSTGRES_USER: postgres
  22. POSTGRES_PASSWORD: password
  23. dawarich_app:
  24. image: freikin/dawarich:0.1.0
  25. container_name: dawarich_app
  26. volumes:
  27. - /home/pi/docker/dawarich/gem_cache:/usr/local/bundle/gems
  28. networks:
  29. - dawarich
  30. ports:
  31. - 3030:3000
  32. stdin_open: true
  33. tty: true
  34. entrypoint: dev-entrypoint.sh
  35. command: ['bin/dev']
  36. environment:
  37. RAILS_ENV: development
  38. REDIS_URL: redis://dawarich_redis:6379/0
  39. DATABASE_HOST: dawarich_db
  40. DATABASE_USERNAME: postgres
  41. DATABASE_PASSWORD: password
  42. DATABASE_NAME: dawarich_development
  43. MINIMUM_POINTS_IN_CITY: 5
  44. depends_on:
  45. - dawarich_db
  46. - dawarich_redis
  47. dawarich_sidekiq:
  48. image: freikin/dawarich:0.1.0
  49. container_name: dawarich_sidekiq
  50. volumes:
  51. - /home/pi/docker/dawarich/gem_cache:/usr/local/bundle/gems
  52. networks:
  53. - dawarich
  54. stdin_open: true
  55. tty: true
  56. entrypoint: dev-entrypoint.sh
  57. command: ['sidekiq']
  58. environment:
  59. RAILS_ENV: development
  60. REDIS_URL: redis://dawarich_redis:6379/0
  61. DATABASE_HOST: dawarich_db
  62. DATABASE_USERNAME: postgres
  63. DATABASE_PASSWORD: password
  64. DATABASE_NAME: dawarich_development
  65. depends_on:
  66. - dawarich_db
  67. - dawarich_redis
  68. - dawarich_app
Add Comment
Please, Sign In to add comment