Guest User

Untitled

a guest
Jan 9th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. docker-compose up -d
  2.  
  3. web:
  4. build: .
  5. restart: always
  6. command: ['tini', '--', 'rails', 's']
  7. environment:
  8. RAILS_ENV: production
  9. HOST: example.com
  10. EMAIL: admin@example.com
  11. links:
  12. - db:mongo
  13. - exim4:exim4.docker # <-- Add link
  14. ports:
  15. - 3000:3000
  16. volumes:
  17. - .:/usr/src/app
  18. db:
  19. image: mongo
  20. restart: always
  21. exim4: # <-------------------------------- Add new container
  22. image: exim4
  23. restart: always
  24. ports:
  25. - 25:25
  26. environment:
  27. EMAIL_USER: user@example.com
  28. EMAIL_PASSWORD: abcdabcdabcdabcd
Add Comment
Please, Sign In to add comment