Skip to content

Instantly share code, notes, and snippets.

@trollboy
Created May 12, 2018 22:59
Show Gist options
  • Select an option

  • Save trollboy/73c4afd581a7241740e654406c3128b7 to your computer and use it in GitHub Desktop.

Select an option

Save trollboy/73c4afd581a7241740e654406c3128b7 to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./bin:/var/www/bin
- ./data:/var/www/data
- ./lib:/var/www/lib
- ./public:/var/www/public
- ./vendor:/var/www/vendor
- ./confs/site.conf:/etc/nginx/conf.d/default.conf
networks:
- code-network
php:
image: php:fpm
volumes:
- ./public:/var/www/public
- ./vendor:/var/www/vendor
- ./lib:/var/www/lib
networks:
- code-network
mysql:
image: mysql
ports:
- "3307:1337"
environment:
MYSQL_ROOT_PASSWORD: password
memcached:
image: memcached
ports:
- "11211:11211"
networks:
code-network:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment