wodby / docker4ruby Goto Github PK
View Code? Open in Web Editor NEWDocker-based Ruby stack (works for Rails)
Home Page: https://wodby.com/docker4ruby
License: MIT License
Docker-based Ruby stack (works for Rails)
Home Page: https://wodby.com/docker4ruby
License: MIT License
The .env file has DB_HOST=postgresl
. I was getting connection errors regarding the hostname on a new Rails application.
Changing this to DB_HOST=postgres
and restarting the container resolved the connection issue.
Noticing that my ruby container won't start. It just shows exit code 127.
macOS Catolina
# Run "docker info" on the host machine and paste output here
version: "3"
services:
mariadb:
image: wodby/mariadb:$MARIADB_TAG
container_name: "${PROJECT_NAME}_mariadb"
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_DATABASE: $DB_NAME
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
volumes:
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
ruby:
build:
context: ./
args:
RUBY_TAG: $RUBY_TAG
container_name: "${PROJECT_NAME}_ruby"
environment:
DB_HOST: $DB_HOST
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
DB_NAME: $DB_NAME
DB_ADAPTER: $DB_ADAPTER
volumes:
- ./:/usr/src/app:cached
## For macOS users (https://wodby.com/docs/stacks/ruby/local#docker-for-mac)
# - ./:/usr/src/app:cached # User-guided caching
# - docker-sync:/usr/src/app # Docker-sync
nginx:
image: wodby/nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
environment:
NGINX_STATIC_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: ruby
NGINX_VHOST_PRESET: http-proxy
volumes:
- ./:/usr/src/app
# Options for macOS users (https://wodby.com/docs/stacks/ruby/local#docker-for-mac)
# - ./:/usr/src/app:cached # User-guided caching
# - docker-sync:/usr/src/app # Docker-sync
labels:
- 'traefik.backend=${PROJECT_NAME}_nginx_1'
- 'traefik.entrypoint=http'
- 'traefik.enable=true'
- 'traefik.port=80'
- 'traefik.priority=10'
- 'traefik.frontend.rule=Host:${PROJECT_NAME}.test'
mailhog:
image: mailhog/mailhog
container_name: "${PROJECT_NAME}_mailhog"
labels:
- 'traefik.backend=${PROJECT_NAME}_mailhog_1'
- 'traefik.port=8025'
- 'traefik.frontend.rule=Host:mailhog.${PROJECT_NAME}.test'
I see the message exit code 127 when it tries to start it. This is the logs in Portainer:
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
/docker-entrypoint.sh: line 62: exec: puma: not found
Gem file has gem 'puma', '~> 4.1'
While doing docker-compose up, I get this error:
Service 'ruby' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder427900012/Gemfile: no such file or directory
Any thoughts?
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.