Skip to content

Instantly share code, notes, and snippets.

@kevinjqiu
Created May 29, 2016 15:18
Show Gist options
  • Save kevinjqiu/e0eeb9be55da5aee7ef1c5d871a56361 to your computer and use it in GitHub Desktop.
Save kevinjqiu/e0eeb9be55da5aee7ef1c5d871a56361 to your computer and use it in GitHub Desktop.
version: "2"
services:
nginx:
image: nginx
ports:
- "80:80"
links:
- web
command: /bin/bash -c "echo -e 'upstream backend { server web:5000; }\nserver { listen 80; location / { proxy_pass http://backend; }}' > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
web:
build: .
working_dir: /app/
links:
- db
environment:
MONGODB: mongodb://db/reviewninja
GITHUB_CLIENT: ***
GITHUB_SECRET: ***
db:
image: mongo
volumes:
- /data:/data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment