Skip to content

Instantly share code, notes, and snippets.

@BenHall
Created November 28, 2016 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenHall/0838efe51af4966ae47e621d516505ef to your computer and use it in GitHub Desktop.
Save BenHall/0838efe51af4966ae47e621d516505ef to your computer and use it in GitHub Desktop.
web: # Container Name
build: . # Build
links: # Links
- elasticsearch
ports: # Ports
- 3000
environment: # Environment
VIRTUAL_HOST: ’www.katacoda.com'
NODE_ENV: 'production’
elasticsearch: # 2nd Container Name
image: elasticsearch:1.5 # Use Image
ports: # Ports
- 9200:9200
@BenHall
Copy link
Author

BenHall commented Jan 17, 2017

Migrate this to match Redis / NodeJs app

@mjbettinson
Copy link

Rogue quotes formatting in the VIRTUAL_HOST and NODE_ENV properties!

@BenHall
Copy link
Author

BenHall commented May 22, 2017

cat docker-compose.yml
web:
image: katacoda/redis-node-docker-example
links:
- redis:redis
ports:
- 3000:3000

redis:
image: redis:3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment