Git Product home page Git Product logo

joaoscotto / docker-ruby-puma-nginx-postgres Goto Github PK

View Code? Open in Web Editor NEW
41.0 1.0 11.0 161 KB

Rails project with docker, compose, ruby3, rails6, nginx, puma and postgres

Home Page: https://scotto.medium.com/2021-docker-ruby-3-rails-6-puma-nginx-postgres-d84c95f68637

Ruby 72.05% JavaScript 8.59% CSS 1.75% HTML 14.13% Makefile 0.92% Dockerfile 2.07% Shell 0.49%
ruby rails nginx puma docker docker-compose postgres

docker-ruby-puma-nginx-postgres's Introduction

About

image

This is an example of how to set up a project with:

  • Ruby 3
  • Rails 6
  • Postgres
  • Puma
  • Nginx
  • Docker
  • Docker compose

Getting started

To start up the application in your local Docker environment:

1 - Clone the repository

git clone https://github.com/joaoscotto/docker-ruby-puma-nginx-postgres.git
cd docker-ruby-puma-nginx-postgres

2 - Build and start Docker

make build

3 - See the Makefile for more commands:

make docker
make clean
make start
make bash
make logs

docker-ruby-puma-nginx-postgres's People

Contributors

joaoscotto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-ruby-puma-nginx-postgres's Issues

could not translate host name "postgres" to address: Temporary failure in name resolution

could not translate host name "postgres" to address: Temporary failure in name resolution
Couldn't create 'app_development' database. Please check your configuration.
rails aborted!
ActiveRecord::NoDatabaseError: could not translate host name "postgres" to address: Temporary failure in name resolution
/app/bin/rails:5:in <top (required)>' /app/bin/spring:10:in require'
/app/bin/spring:10:in block in <top (required)>' /app/bin/spring:7:in <top (required)>'

https://registry.yarnpkg.com/webpack: unable to get local issuer certificate

Hi,

I am getting below error with yarn.

#16 4.706 yarn add v1.22.10
#16 4.835 [1/4] Resolving packages...
#16 5.383 error An unexpected error occurred: "https://registry.yarnpkg.com/@rails%2fwebpacker: unable to get local issuer certificate".
#16 5.384 info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
#16 5.384 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
#16 5.393 Installing webpack and webpack-cli as direct dependencies
#16 5.393          run  yarn add webpack@^4.46.0 webpack-cli@^3.3.12 from "."
#16 5.969 yarn add v1.22.10
#16 6.086 [1/4] Resolving packages...
#16 6.909 error An unexpected error occurred: "https://registry.yarnpkg.com/webpack: unable to get local issuer certificate".
#16 6.909 info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
#16 6.909 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
#16 6.934 Installing dev server for live reloading
#16 6.934          run  yarn add --dev webpack-dev-server from "."
#16 7.465 yarn add v1.22.10
#16 7.591 [1/4] Resolving packages...
#16 8.223 error An unexpected error occurred: "https://registry.yarnpkg.com/webpack-dev-server: unable to get local issuer certificate".

Regards,
Kiran.

error Command "webpack" not found

Hi,

I am getting below error.

I have also added "RUN npm install --unsafe-perm -g webpack" to Dockerfile to install webpack.

#15 3.041 Compiling...
#15 4.582 Compilation failed:
#15 4.582 yarn run v1.22.10
#15 4.582 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#15 4.582
#15 4.582
#15 4.582 /usr/local/bin/ruby: warning: shebang line ending with \r may cause problems
#15 4.582 error Command "webpack" not found.
#15 4.582
#15 ERROR: executor failed running [/bin/sh -c SECRET_KEY_BASE=1 RAILS_ENV=production bundle exec rake assets:precompile]: exit code: 1
------
 > [11/11] RUN SECRET_KEY_BASE=1 RAILS_ENV=production bundle exec rake assets:precompile:
------
executor failed running [/bin/sh -c SECRET_KEY_BASE=1 RAILS_ENV=production bundle exec rake assets:precompile]: exit code: 1
Service 'app' failed to build : Build failed

Thanks,
Kiran.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.