Skip to content

Instantly share code, notes, and snippets.

@codingedgar
Last active August 7, 2018 15:37
Show Gist options
  • Save codingedgar/17a55c18527a342354bb456d149d286f to your computer and use it in GitHub Desktop.
Save codingedgar/17a55c18527a342354bb456d149d286f to your computer and use it in GitHub Desktop.
Un buen flujo de trabajo en Node.js: Makefile (variables de entorno)
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
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