Created
June 22, 2017 20:49
-
-
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
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vocês precisam mudar as linhas: 14, 15, 16, 29, 30 e 31