Created
May 29, 2016 15:18
-
-
Save kevinjqiu/e0eeb9be55da5aee7ef1c5d871a56361 to your computer and use it in GitHub Desktop.
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: "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