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
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 .
Copyright (c) 2020 Rendered Text
Distributed under the MIT License. See the file LICENSE.md.