Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
Last active August 21, 2016 15:48
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 lopezjurip/90fa0ce3f1803ed75b02bfe6f2923cb6 to your computer and use it in GitHub Desktop.
Save lopezjurip/90fa0ce3f1803ed75b02bfe6f2923cb6 to your computer and use it in GitHub Desktop.
# docker-compose.yml
version: '2'
services:
loadbalancer:
image: dockercloud/haproxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
links:
- webapi
postgresql:
image: postgres
environment:
- POSTGRES_USER=railsapi
- POSTGRES_DB=railsapi_production
- POSTGRES_PASSWORD
webapi:
build: .
restart: always
depends_on:
- postgresql
environment:
- POSTGRES_PASSWORD
- SECRET_KEY_BASE
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment