Skip to content

Instantly share code, notes, and snippets.

@devnore
Last active August 5, 2021 09:16
Show Gist options
  • Save devnore/afff13841226e034d1bd242616f42979 to your computer and use it in GitHub Desktop.
Save devnore/afff13841226e034d1bd242616f42979 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
nginx:
image: mycustom/nginx:latest
build:
context: ./Dockerfiles/nginx
hostname: docker.local
volumes:
- ${HOME}/dockerSites/www:/var/www
- nginxlogs:/var/log/nginx
- services:/sites
ports:
- "80:80"
depends_on:
- db.docker
- php-56
- php-70
- php-72
db.docker:
image: mysql:5.7
hostname: db.docker
volumes:
- ${HOME}/dockerSites/backup/:/docker-entrypoint-initdb.d
- ${HOME}/dockerSites/mysql:/var/lib/mysql
- ${HOME}/dockerSites/lemp/Dockerfiles/mysql/files/conf.d:/etc/mysql/conf.d
ports:
- "3306:3306"
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: "developmentpassword"
dnsmasq:
image: mycustom/dnsmasq:latest
build:
context: ./Dockerfiles/dnsmasq
ports:
- "53:53"
- "53535:53"
- "53:53/udp"
- "53535:53/udp"
mail:
image: djfarrelly/maildev
ports:
- "1080:80"
- "1025:25"
memcached:
image: memcached:alpine
ports:
- "11212:11211"
expose:
- "11211"
php-56:
image: mycustom/php-56:latest
build:
context: ./Dockerfiles/php
dockerfile: Dockerfile-php-56
volumes:
- ${HOME}/dockerSites/www:/var/www
- nginxlogs:/var/log/nginx
- services:/sites
php-70:
image: registry.ispy.se/docker/lemp/php-70:latest
build:
context: ./Dockerfiles/php
dockerfile: Dockerfile-php-70
volumes:
- ${HOME}/dockerSites/www:/var/www
- nginxlogs:/var/log/nginx
- services:/sites
php-72:
image: mycustom/php-72:latest
build:
context: ./Dockerfiles/php
dockerfile: Dockerfile-php-72
volumes:
- ${HOME}/dockerSites/www:/var/www
- nginxlogs:/var/log/nginx
- services:/sites
volumes:
nginxlogs:
services:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment