Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- application:
- build: code
- volumes:
- - /websites/domain:/var/www/laravel
- - /docker/webs/domain/logs:/var/www/laravel/storage/logs
- tty: true
- redis:
- image: redis:alpine
- db:
- image: mariadb:10.2
- environment:
- MYSQL_ROOT_PASSWORD: toor
- MYSQL_DATABASE: laravel
- TEST_DB_NAME: laravel_test
- MYSQL_USER: laravel
- MYSQL_PASSWORD: laravel
- php:
- build: php7-fpm
- volumes_from:
- - application
- links:
- - db
- - redis
- nginx:
- build: nginx
- links:
- - php
- volumes_from:
- - application
- - nginx-proxy
- volumes:
- - ./logs/nginx/:/var/log/nginx
- environment:
- - VIRTUAL_HOST=www.domain.com
- FROM debian:jessie
- MAINTAINER Purinda Gunasekara <purinda@gmail.com>
- RUN apt-get update && apt-get install -y
- nginx
- ADD nginx.conf /etc/nginx/
- ADD *.conf /etc/nginx/sites-enabled/
- RUN rm /etc/nginx/sites-enabled/default
- RUN rm /etc/nginx/sites-enabled/nginx.conf
- # remove the https for local development
- #RUN rm /etc/nginx/sites-enabled/*.ssl.conf
- RUN echo "upstream php-upstream { server php:9000; }" >
- /etc/nginx/conf.d/upstream.conf
- RUN usermod -u 1000 www-data
- CMD ["nginx"]
- EXPOSE 80
- EXPOSE 443
- docker: Error response from daemon:
- driver failed programming external connectivity on endpoint
- nginx_proxy <containerID>: Bind for 0.0.0.0:443 failed: port is already allocated.
Add Comment
Please, Sign In to add comment