Skip to content

Instantly share code, notes, and snippets.

@maishsk
Created January 13, 2019 08:49
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 maishsk/252c7d77502604ee9c4d3520b65f5cfb to your computer and use it in GitHub Desktop.
Save maishsk/252c7d77502604ee9c4d3520b65f5cfb to your computer and use it in GitHub Desktop.
Docker compose
version: '3'
services:
mysql:
image: "maishsk/mysql"
ports:
- "3306:3306"
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
nginx:
image: "maishsk/nginx"
expose:
- 80
ports:
- "80:80"
depends_on:
- node
node:
image: "maishsk/node-app"
expose:
- 3000
ports:
- "3000:3000"
depends_on:
- mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment