docker-compose.yml.example 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. version: '2'
  2. services:
  3. # db and testdb define local database containers for development.
  4. # If you plan to use a remote database (like RDS), remove the db and testdb
  5. # services and add your own database hosts to the db_host and test_db_host
  6. # environment variables.
  7. db:
  8. image: postgres
  9. environment:
  10. POSTGRES_PASSWORD: mysecretpassword
  11. testdb:
  12. image: postgres
  13. environment:
  14. POSTGRES_PASSWORD: mysecrettestpassword
  15. app:
  16. build: .
  17. # # Expose ports for development. Use 8094 to integrate with Congress Forms.
  18. # ports:
  19. # - '8094:3000'
  20. # # Use volumes to edit files from the host OS in development.
  21. # volumes:
  22. # - ./app:/opt/actioncenter/app
  23. # - ./bin:/opt/actioncenter/bin
  24. # - ./config:/opt/actioncenter/config
  25. # - ./db:/opt/actioncenter/db
  26. # - ./features:/opt/actioncenter/features
  27. # - ./lib:/opt/actioncenter/lib
  28. # - ./script:/opt/actioncenter/script
  29. # - ./spec:/opt/actioncenter/spec
  30. # - ./vendor:/opt/actioncenter/vendor
  31. # - ./Gemfile:/opt/Gemfile
  32. # - ./Gemfile.lock:/opt/Gemfile.lock
  33. # # Automatically restart the app on exit in production.
  34. # restart: always
  35. env_file: .env
  36. environment:
  37. ROLE: web
  38. # Uncomment these services to run cron/delayed job
  39. #
  40. # cron:
  41. # build: .
  42. # user: root
  43. # restart: always
  44. # command: cron -f
  45. # env_file: .env
  46. # environment:
  47. # ROLE: worker
  48. #
  49. # delayed_jobs:
  50. # build: .
  51. # restart: always
  52. # command: bundle exec rake jobs:work
  53. # env_file: .env
  54. # environment:
  55. # ROLE: worker