From 0590eaeca71815c6e5f7a0f83b10a350e1eefba0 Mon Sep 17 00:00:00 2001 From: Igor Alexandrov Date: Tue, 3 Dec 2024 13:03:20 +0400 Subject: [PATCH] Added more examples --- content/guides/ruby/containerize.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/guides/ruby/containerize.md b/content/guides/ruby/containerize.md index 0884dbffa488..140ae59e6733 100644 --- a/content/guides/ruby/containerize.md +++ b/content/guides/ruby/containerize.md @@ -208,7 +208,7 @@ Besides the two files above you will also need a `.dockerignore` file. This file The last thing that may be necessary, but not always required is `compose.yml` file, used by Docker Compose to define the services that make up your application. Since we are using SQLite as the database, we don't need to define a separate service for the database, and the only service we need is the Rails application itself. -```yaml {collapse=true,title=compose.yaml} +```yaml {title=compose.yaml} services: web: build: . @@ -218,23 +218,23 @@ services: - "3000:80" ``` -You should now have the following three files in your `docker-ruby-on-rails` -directory. +You should now have the following files in your application folder: -- .dockerignore -- compose.yaml -- Dockerfile +- `.dockerignore` +- `compose.yaml` +- `Dockerfile` +- `bin/docker-entrypoint` To learn more about the files, see the following: -- [Dockerfile](/reference/dockerfile.md) -- [.dockerignore](/reference/dockerfile.md#dockerignore-file) +- [Dockerfile](/reference/dockerfile) +- [.dockerignore](/reference/dockerfile#dockerignore-file) - [compose.yaml](/reference/compose-file/_index.md) +- [docker-entrypoint](/reference/dockerfile/#entrypoint) ## Run the application -Inside the `docker-ruby-on-rails` directory, run the following command in a -terminal. +To run the application, run the following command in a terminal inside the application's directory. ```console $ docker compose up --build