Guest User

Untitled

a guest
Aug 14th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. application:
  2. build: code
  3. volumes:
  4. - /websites/domain:/var/www/laravel
  5. - /docker/webs/domain/logs:/var/www/laravel/storage/logs
  6. tty: true
  7. redis:
  8. image: redis:alpine
  9. db:
  10. image: mariadb:10.2
  11. environment:
  12. MYSQL_ROOT_PASSWORD: toor
  13. MYSQL_DATABASE: laravel
  14. TEST_DB_NAME: laravel_test
  15. MYSQL_USER: laravel
  16. MYSQL_PASSWORD: laravel
  17. php:
  18. build: php7-fpm
  19. volumes_from:
  20. - application
  21. links:
  22. - db
  23. - redis
  24. nginx:
  25. build: nginx
  26. links:
  27. - php
  28. volumes_from:
  29. - application
  30. - nginx-proxy
  31. volumes:
  32. - ./logs/nginx/:/var/log/nginx
  33. environment:
  34. - VIRTUAL_HOST=www.domain.com
  35.  
  36. FROM debian:jessie
  37.  
  38. MAINTAINER Purinda Gunasekara <purinda@gmail.com>
  39.  
  40. RUN apt-get update && apt-get install -y
  41. nginx
  42.  
  43. ADD nginx.conf /etc/nginx/
  44.  
  45. ADD *.conf /etc/nginx/sites-enabled/
  46.  
  47. RUN rm /etc/nginx/sites-enabled/default
  48. RUN rm /etc/nginx/sites-enabled/nginx.conf
  49.  
  50. # remove the https for local development
  51. #RUN rm /etc/nginx/sites-enabled/*.ssl.conf
  52.  
  53. RUN echo "upstream php-upstream { server php:9000; }" >
  54. /etc/nginx/conf.d/upstream.conf
  55.  
  56. RUN usermod -u 1000 www-data
  57.  
  58. CMD ["nginx"]
  59.  
  60. EXPOSE 80
  61. EXPOSE 443
  62.  
  63. docker: Error response from daemon:
  64. driver failed programming external connectivity on endpoint
  65. nginx_proxy <containerID>: Bind for 0.0.0.0:443 failed: port is already allocated.
Add Comment
Please, Sign In to add comment