I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| # Create your superuser | |
| $ mongo | |
| > use admin | |
| > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
| > exit | |
| # Alias for convenience (optional and at your own risk) | |
| $ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
| $ source ~/.bash_profile |
| api: bundle exec puma -C config/puma.rb |
| version: '2' | |
| services: | |
| rails: | |
| image: frails | |
| hostname: "FichasAPIRails" | |
| container_name: "FichasAPIRails2" | |
| ports: | |
| - "3000:3000" | |
| - "8808:8808" | |
| working_dir: /usr/src/app |
| version: '2' | |
| services: | |
| rails: | |
| image: dockermd/frails:rm | |
| hostname: "FichasAPIRails" | |
| container_name: "FichasAPIRails2" | |
| ports: | |
| - "3000:3000" | |
| - "8808:8808" | |
| working_dir: /usr/src/app |