Last active
August 7, 2018 15:37
-
-
Save codingedgar/17a55c18527a342354bb456d149d286f to your computer and use it in GitHub Desktop.
Un buen flujo de trabajo en Node.js: Makefile (variables de entorno)
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" | |
services: | |
postgre: | |
image: postgres | |
expose: | |
- "5432" | |
environment: | |
- POSTGRES_PASSWORD=change_da_world | |
redis: | |
image: redis | |
expose: | |
- "6379" | |
change_the_world: | |
image: node | |
depends_on: | |
- postgre | |
- redis | |
command: bash -c 'yarn start' | |
volumes: | |
- ./change_the_world/:/usr/src/app/ | |
expose: | |
- "80" | |
environment: | |
- DATABASE_PASSWORD=123456 |
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
compose = docker-compose -f ./docker-compose.yml | |
apps-up: | |
${compose} up ${app} | |
apps-up-bg: | |
${compose} up -d ${app} | |
apps-down: | |
${compose} down ${app} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment