Skip to content

Instantly share code, notes, and snippets.

@tarlepp
Created March 20, 2020 19:17
Show Gist options
  • Select an option

  • Save tarlepp/4eb74d5331ba03fd08f4ef1d829acca7 to your computer and use it in GitHub Desktop.

Select an option

Save tarlepp/4eb74d5331ba03fd08f4ef1d829acca7 to your computer and use it in GitHub Desktop.
version: '3'
services:
php:
build:
context: .
dockerfile: ./Dockerfile_dev
command: php-fpm
depends_on:
- mysql
ports:
- 9000:9000
volumes:
- ./:/app:cached
- /app/var/
environment:
PHP_IDE_CONFIG: "serverName=app.localhost"
nginx:
build:
context: ./docker/nginx/
depends_on:
- php
ports:
- 8000:80
volumes:
- ./:/app:cached
- /app/var/
mysql:
build:
context: ./docker/mysql/
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- 3310:3306
volumes:
- mysql:/var/lib/mysql
volumes:
mysql:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment