Created
October 22, 2017 11:25
-
-
Save mlabouardy/14bb4a586746fe29584a5626315bc1e2 to your computer and use it in GitHub Desktop.
Compose to deploy a NodeJS & MySQL stack
This file contains hidden or 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.0" | |
services: | |
mysql: | |
image: mysql:5.6 | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- db-net | |
app: | |
build: . | |
ports: | |
- 3000:3000 | |
environment: | |
- MYSQL_HOST=mysql | |
- MYSQL_USER=root | |
- MYSQL_PASSWORD=root | |
networks: | |
- db-net | |
networks: | |
db-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment