Advertisement
Guest User

Untitled

a guest
May 10th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. db:
  5. image: postgres
  6. restart: always
  7. environment:
  8. POSTGRES_USER: root
  9. POSTGRES_PASSWORD: 12345
  10. POSTGRES_DB: plataforma_staging
  11. app:
  12. image: plataforma_api:0.1
  13. build:
  14. context: .
  15. dockerfile: ./docker/app/Dockerfile
  16. command: bundle exec puma -C config/puma.rb
  17. depends_on:
  18. - db
  19. environment:
  20. PUMA_PORT: 80
  21. PLATAFORMA_USERNAME: root
  22. PLATAFORMA_DATABASE: plataforma_staging
  23. PLATAFORMA_PASSWORD: 12345
  24. PLATAFORMA_HOST: db
  25. ports:
  26. - 80:80
  27.  
  28. db_development:
  29. image: postgres
  30. environment:
  31. POSTGRES_USER: root
  32. POSTGRES_PASSWORD: 12345
  33. POSTGRES_DB: plataforma_development
  34. expose:
  35. - 5432
  36.  
  37. app_development:
  38. image: development_api:0.1
  39. build:
  40. context: .
  41. dockerfile: ./docker/app/Dockerfile.development
  42. volumes:
  43. - .:/app
  44. depends_on:
  45. - db_development
  46. ports:
  47. - "3000:3000"
  48. links:
  49. - db_development
  50. command: rails server -p 3000 -b '0.0.0.0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement