Skip to content

Instantly share code, notes, and snippets.

@andrewhampton
Created February 12, 2015 18:40
Show Gist options
  • Save andrewhampton/553529f1a194ff32afed to your computer and use it in GitHub Desktop.
Save andrewhampton/553529f1a194ff32afed to your computer and use it in GitHub Desktop.
app:
build: .
command: bundle exec rails server -b 0.0.0.0 --pid=/tmp/app.pid
volumes:
- .:/usr/src/app
links:
- proxy
environment:
- VIRTUAL_HOST=app.d
expose:
- "3000"
proxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock
ports:
- "80:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment