Last active
July 14, 2017 18:20
-
-
Save brankoajzele/c8e5e0766147d0541f91f3cc52fcb60e to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains 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: '3' | |
services: | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- mysql_data:/var/lib/mysql | |
restart: always | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: 5!%Pa6xV3Kzp | |
MYSQL_DATABASE: magento | |
MYSQL_USER: magento | |
MYSQL_PASSWORD: t79$$b8MBXPy | |
php: | |
image: php:7.1-fpm | |
volumes: | |
- ./:/usr/share/nginx/html | |
ports: | |
- "9000:9000" | |
web: | |
image: nginx:mainline | |
volumes: | |
- ./:/usr/share/nginx/html | |
- ./nginx.conf.sample:/etc/nginx/nginx.conf | |
ports: | |
- "80:80" | |
volumes: | |
mysql_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment