Skip to content

Instantly share code, notes, and snippets.

@HugoLnx
Created June 22, 2017 20:49
Show Gist options
  • Save HugoLnx/3e2af8200018dfeffd01cc4dea4a540e to your computer and use it in GitHub Desktop.
Save HugoLnx/3e2af8200018dfeffd01cc4dea4a540e to your computer and use it in GitHub Desktop.
Sample of docker compose yml with only one id, secret and no slaves
web:
command: sh -c "rails s --bind 0.0.0.0"
ports:
- "3000:3000"
build: .
volumes:
- .:/app
links:
- redis:redis.local
- mongodb:mongo.local
environment:
- REDIS_URL=redis://redis.local/0
- MONGODB_HOST=mongo.local
- CLIENT_ID=1110f691a052c99ef7e1
- CLIENT_SECRET=832328534e19ef2c8b9e8caf4e7ef8068d133b40
- SLAVES=
sidekiq:
command: bundle exec sidekiq
build: .
volumes:
- .:/app
links:
- redis:redis.local
- mongodb:mongo.local
environment:
- REDIS_URL=redis://redis.local/0
- MONGODB_HOST=mongo.local
- CLIENT_ID=1110f691a052c99ef7e1
- CLIENT_SECRET=832328534e19ef2c8b9e8caf4e7ef8068d133b40
- SLAVES=
redis:
image: redis:3.2
mongodb:
image: mongo:3.3
@HugoLnx
Copy link
Author

HugoLnx commented Jun 22, 2017

Vocês precisam mudar as linhas: 14, 15, 16, 29, 30 e 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment