Advertisement
Guest User

docker-compose

a guest
Dec 17th, 2015
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. postgres:
  2. restart: always
  3. image: postgres:9.4.4
  4. ports:
  5. - "5432:5432" # Bind host port 5432 to PostgreSQL port 5432
  6. volumes:
  7. - ./db/dumps:/app-db-dumps
  8. - ./db/postgres-setup.sql/docker-entrypoint-initdb.d/setup.sql
  9. environment:
  10. LC_ALL: C.UTF-8
  11. POSTGRES_PASSWORD: 3x1mpl3
  12.  
  13. mongo:
  14. image: mongo:3.0.7
  15. ports:
  16. - "27017:27017"
  17. command: --smallfiles --rest --auth
  18.  
  19. redis:
  20. image: redis:3.0.4
  21. ports:
  22. - "6379:6379" # Bind host port 6379 to Redis port 6379
  23.  
  24. web: &app_base
  25. build: .
  26. ports:
  27. - "80:80"
  28. volumes:
  29. - .:/Nyvur
  30. links: &app_links
  31. - postgres:postgres.local
  32. - redis:redis.local
  33. environment: &app_environment
  34. # PostgreSQL Development Database:
  35. # DATABASE_URL: postgres://postgres:3x1mpl3@postgres.local:5432/App_production?pool=25&encoding=unicode&schema_search_path=public
  36. REDIS_URL: redis://redis.local:6379
  37. SIDEKIQ_CONCURRENCY: 5
  38. SIDEKIQ_TIMEOUT: 10
  39. ENABLE_DEBUG_SERVER: true
  40. RACK_ENV: production
  41. RAILS_ENV: production
  42.  
  43. worker:
  44. <<: *app_base
  45. ports: []
  46. command: sidekiq -c 25 -e production -q default
  47. environment:
  48. SECRET_KEY_BASE: e09afa8b753cb175bcef7eb5f737accd02a4c16d9b6e5d475943605abd4277cdf47c488812d21d9c7117efd489d876f34be52f7ef7e88b21759a079339b198ce
  49. environment:
  50. # SECRET_KEY_BASE:
  51. RAILS_ENV: production
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement