neckhair / rails-on-docker Goto Github PK
View Code? Open in Web Editor NEWDifferent approaches to create Docker containers for Ruby on Rails.
Different approaches to create Docker containers for Ruby on Rails.
Hi,
I am trying your system and the assets are not served by Nginx.
I have the following error in the logs:
web_1 | X-Accel-Mapping header missing
It seems that the Nginx proxy does not handle the X-Accel-Redirect
header.
Best regards,
Hi
The repositories used in bin/bootstrap.sh don't seem to be public - at least some of them (memcached, rails).
Thanks
I usually leave free version of gems added, at least to see what's up. About sidekiq, using the latest, it just fails and prevent the rails container to work. First I can see that reds-namespace dependency disappeared, not knowing that much more.
You might have a better understanding and "froze" the sidekiq's version on purpose, did you ? I'd be more than happy to understand it better
Based on https://docs.docker.com/compose/gettingstarted/. The new standard way of writing the docker-compose.yml
is like this:
version: '2'
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
depends_on:
- redis
redis:
image: redis
I hope that this helps. ๐
Ravis-MacBook-Pro:rails-on-docker medlio$ docker-compose run web bundle exec rake db:setup
Starting railsondocker_dbdata_1
Starting railsondocker_db_1
ERROR: for db Cannot start service db: Cannot link to a non running container: /railsondocker_dbdata_1 AS /railsondocker_db_1/dbdata_1
ERROR: Encountered errors while bringing up the project.
Ravis-MacBook-Pro:rails-on-docker medlio$ docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------
railsondocker_cache_1 docker-entrypoint.sh memcached Up 11211/tcp
railsondocker_db_1 /entrypoint.sh mysqld Exit 128
railsondocker_dbdata_1 /entrypoint.sh /bin/echo m ... Exit 0
railsondocker_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
I am using Docker.app on mac. Any ideas?
Alpine Linux is a very small distribution based on BusyBox and can help you build a very slim image. It's much more slimmer and lightweight than Ubuntu or even Debian images.
Hi when I tried to run docker-compose up
. I could not get into the web application by typing 'localhost' and the server responded to me 503 Service Temporarily Unavailable
. Any ideas or I missed configure something?
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.