Last active
October 17, 2016 20:46
-
-
Save devdrops/78ea9505f52c1bd859ecce6638b0ab9b to your computer and use it in GitHub Desktop.
WIP for a new Docker environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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