Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mail($to, $subject, $message, $headers);
- version: '2'
- services:
- nginx-cache:
- image: nginx:latest
- container_name: nginx-cache
- restart: always
- ports:
- - "80:80"
- links:
- - apache
- volumes:
- - /var/run/docker.sock:/tmp/docker.sock:ro
- - "./.envconfigs/nginx.template:/etc/nginx/conf.d/wp.template:ro"
- command: /bin/bash -c "envsubst '$$NGINX_HOST $$NGINX_PORT' < /etc/nginx/conf.d/wp.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
- tty: true
- environment:
- NGINX_HOST: apache
- NGINX_PORT: 80
- mysql:
- container_name: mysql_database
- image: mysql:latest
- ports:
- - "3306"
- volumes:
- - "./db_data:/var/lib/mysql"
- environment:
- MYSQL_ROOT_PASSWORD: toor
- MYSQL_DATABASE: DATABASE_NAME
- apache:
- container_name: HOSTNAME
- build: .
- volumes:
- - "./web:/var/www/html"
- - "./htaccess:/var/www/html/.htaccess:ro"
- ports:
- - "80"
- restart: always
- environment:
- ENVIRONMENT: local
- links:
- - mysql
- smtp:
- build: .
- ports:
- - "25:25"
- #environment:
- #GMAIL_USER:
- # GMAIL_PASSWORD:
- #SES_USER:
- #SES_PASSWORD:
- #SES_REGION:
- # RELAY_NETWORKS:
- # RELAY_DOMAINS:
- #KEY_PATH:
- #CERTIFICATE_PATH:
- # MAILNAME:
- FROM ubuntu:trusty
- RUN apt-get update &&
- DEBIAN_FRONTEND=noninteractive apt-get -y upgrade &&
- DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor pwgen &&
- apt-get -y install git apache2 libapache2-mod-php5 php5-mysql php5-pgsql php5-gd php-pear php-apc curl
- ADD apache.conf /etc/apache2/sites-enabled/000-default.conf
- RUN a2enmod headers
- RUN a2enmod rewrite
- RUN a2enmod deflate
- ADD ./web /var/www/html
- RUN rm /var/www/html/index.html
- ADD htaccess /var/www/html/.htaccess
- ADD start.sh /start.sh
- ADD run.sh /run.sh
- RUN chmod 755 /*.sh
- ADD supervisord-apache2.conf /etc/supervisor/conf.d/supervisord-apache2.conf
- EXPOSE 80
- CMD ["/run.sh"]
- FROM debian:jessie
- MAINTAINER Oluwaseun Obajobi "oluwaseun.obajobi@namshi.com"
- RUN apt-get update &&
- apt-get install -y exim4-daemon-light &&
- apt-get clean &&
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&
- find /var/log -type f | while read f; do echo -ne '' > $f; done;
- COPY entrypoint.sh /bin/
- COPY set-exim4-update-conf /bin/
- RUN chmod a+x /bin/entrypoint.sh &&
- chmod a+x /bin/set-exim4-update-conf
- EXPOSE 25
- ENTRYPOINT ["/bin/entrypoint.sh"]
- CMD ["exim", "-bd", "-q15m", "-v"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement