Last active
February 29, 2020 00:59
-
-
Save matthewstokeley/28523f4805602056c9842eda5cea3c63 to your computer and use it in GitHub Desktop.
node docker compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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