Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. version: '3'
  2. services:
  3. db:
  4. image: postgres
  5. environment:
  6. POSTGRES_USER: root
  7. POSTGRES_PASSWORD: mysecretpassword
  8. volumes:
  9. - pgdata:/var/lib/postgresql/data
  10. delayed_job:
  11. build: .
  12. command: bundle exec rails jobs:work
  13. volumes:
  14. - .:/rails-docker
  15. depends_on:
  16. - db
  17. cron_job:
  18. build: .
  19. command: cron -f
  20. depends_on:
  21. - db
  22. web:
  23. build: .
  24. command: bundle exec rails s webrick -b '0.0.0.0'
  25. volumes:
  26. - .:/rails-docker
  27. ports:
  28. - "3000:3000"
  29. depends_on:
  30. - db
  31. tty: true
  32. stdin_open: true
  33. volumes:
  34. pgdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement