Last active
August 21, 2016 15:48
-
-
Save lopezjurip/90fa0ce3f1803ed75b02bfe6f2923cb6 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
# 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