Skip to content

Instantly share code, notes, and snippets.

@GhazanfarMir
Created November 24, 2016 20:52
Show Gist options
  • Save GhazanfarMir/b26ca7cb5e1e98a3e2a9d7a7869c9a4e to your computer and use it in GitHub Desktop.
Save GhazanfarMir/b26ca7cb5e1e98a3e2a9d7a7869c9a4e to your computer and use it in GitHub Desktop.
NGINX MySQL and PHP7
---
version: "2"
services:
dbserver:
image: mysql:latest
container_name: dbserver
environment:
- MYSQL_ROOT_PASSWORD=Pansymeer5
- MYSQL_DATABASE=gmir
- MYSQL_USER=gmir
- MYSQL_PASSWORD=Pansymeer5
ports:
- "3306:3306"
webserver:
container_name: webserver
image: skiychan/nginx-php7:latest
links:
- dbserver
volumes:
- ./src/:/data/www/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment