Skip to content

TomFern/semaphore-demo-ruby-docker

Repository files navigation

Build Status

Dockerizing Ruby Tutorial

Local setup

Prepare environment, for dev version you can use the example environment:

$ cp env-example .env

Start the server:

$ docker-compose up --build

Browse http://localhost:8020

Production image

Prepare production environment, set you production values:

$ cp env-example .env

Build two images:

  • drkiq: application
  • nginx: http server
$ docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t $DOCKER_USERNAME/dockerizing-ruby-drkiq:latest -f Dockerfile.production .
$ docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t $DOCKER_USERNAME/dockerizing-ruby-nginx:latest -f Dockerfile.nginx .

License

Copyright (c) 2020 Rendered Text

Distributed under the MIT License. See the file LICENSE.md.

About

Run Ruby on Rails on Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •