Skip to content

Instantly share code, notes, and snippets.

@matthewstokeley
Last active February 29, 2020 00:59
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 matthewstokeley/28523f4805602056c9842eda5cea3c63 to your computer and use it in GitHub Desktop.
Save matthewstokeley/28523f4805602056c9842eda5cea3c63 to your computer and use it in GitHub Desktop.
node docker compose file
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: "******"
MYSQL_DATABASE: "*******"
MYSQL_USER: "********"
MYSQL_PASSWORD: "*******"
node:
depends_on:
- db
image: node:13.8
volumes:
- ~/Documents/Containers/node/:/~
ports:
- "8000:80"
restart: always
volumes:
db_data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment