Skip to content

Instantly share code, notes, and snippets.

@devdrops
Last active October 17, 2016 20:46
Show Gist options
  • Save devdrops/78ea9505f52c1bd859ecce6638b0ab9b to your computer and use it in GitHub Desktop.
Save devdrops/78ea9505f52c1bd859ecce6638b0ab9b to your computer and use it in GitHub Desktop.
WIP for a new Docker environment
version: '2'
services:
nginx:
image: nginx:latest
ports:
- "777:80"
networks:
- main
php:
image: devdrops/php-fpm:7.0
volumes:
- ./app:/var/www/html
networks:
- main
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: symfony
MYSQL_USER: symfony
MYSQL_PASSWORD: secret
volumes:
- data:/var/lib/mysql
networks:
- main
ports:
- "3307:3306"
networks:
main:
driver: 'bridge'
volumes:
data:
driver: 'local'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment