Last active
April 21, 2018 19:56
-
-
Save skeep/10c30807e68c2dd7da820bd5cf7afe92 to your computer and use it in GitHub Desktop.
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: | |
webapp: | |
build: | |
context: ../webapp | |
volumes: | |
- ../webapp:/usr/src/app | |
links: | |
- mysql | |
depends_on: | |
- mysql | |
mysql: | |
image: mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: database | |
MYSQL_USER: user | |
MYSQL_PASSWORD: password | |
ports: | |
- 3306:3306 | |
migration: | |
image: webapp:latest | |
command: ["./wait-for-it/wait-for-it.sh", "mysql:3306", "--", "npm", "run", "migrate"] | |
links: | |
- mysql | |
depends_on: | |
- mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment