Skip to content

Instantly share code, notes, and snippets.

@brankoajzele
Last active July 14, 2017 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brankoajzele/c8e5e0766147d0541f91f3cc52fcb60e to your computer and use it in GitHub Desktop.
Save brankoajzele/c8e5e0766147d0541f91f3cc52fcb60e to your computer and use it in GitHub Desktop.
docker-compose.yml
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