Advertisement
Guest User

Untitled

a guest
Aug 26th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. version: '3.0'
  2.  
  3. services:
  4. postgres:
  5. environment: &postgres_env
  6. POSTGRES_USER:
  7. POSTGRES_PASSWORD:
  8. volumes:
  9. - ./postgres-data:/var/lib/postgresql/data
  10. ports:
  11. - 5432:5432
  12.  
  13. backend:
  14. environment: &backend_env
  15. <<: *postgres_env
  16. RAILS_MASTER_KEY:
  17. RAILS_MAX_THREADS:
  18. RAILS_ENV: production
  19. POSTGRES_HOST: postgres
  20. REDIS_HOST: redis
  21. REDIS_URL: redis://redis:6379
  22. POSTGRES_HOST: postgres
  23. build:
  24. args:
  25. REPOSITORY:
  26. BRANCH: master
  27. volumes:
  28. - ./log:/var/www/rubyroid-am/log
  29. - ./tmp:/var/www/rubyroid-am/tmp
  30. - public:/var/www/rubyroid-am/public
  31. command: sh -c "./docker-entrypoint.sh"
  32.  
  33. sidekiq:
  34. environment: &sidekiq_env
  35. <<: *backend_env
  36. command: sh -c "sidekiq"
  37.  
  38. nginx:
  39. environment: &nginx_env
  40. TZ: Europe/Minsk
  41. LETSENCRYPT: 'false'
  42. LE_EMAIL:
  43. LE_FQDN:
  44. SSL_CERT: le-crt.pem
  45. SSL_KEY: le-key.pem
  46. SSL_CHAIN_CERT: le-chain-crt.pem
  47. image: rubyroid-am/nginx
  48. build:
  49. context: ./docker/nginx
  50. args:
  51. ENVIRONMENT: staging
  52. hostname: nginx
  53. restart: always
  54. volumes:
  55. - ./ssl:/etc/nginx/ssl
  56. - ./tmp:/var/www/rubyroid-am/tmp
  57. - ./log:/var/www/rubyroid-am/log
  58. - public:/var/www/rubyroid-am/public
  59. depends_on:
  60. - backend
  61. ports:
  62. - 80:80
  63. - 443:443
  64.  
  65. volumes:
  66. public:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement