Skip to content

Commit 0590eae

Browse files
Added more examples
1 parent c2c0262 commit 0590eae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

content/guides/ruby/containerize.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Besides the two files above you will also need a `.dockerignore` file. This file
208208

209209
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.
210210

211-
```yaml {collapse=true,title=compose.yaml}
211+
```yaml {title=compose.yaml}
212212
services:
213213
web:
214214
build: .
@@ -218,23 +218,23 @@ services:
218218
- "3000:80"
219219
```
220220
221-
You should now have the following three files in your `docker-ruby-on-rails`
222-
directory.
221+
You should now have the following files in your application folder:
223222
224-
- .dockerignore
225-
- compose.yaml
226-
- Dockerfile
223+
- `.dockerignore`
224+
- `compose.yaml`
225+
- `Dockerfile`
226+
- `bin/docker-entrypoint`
227227

228228
To learn more about the files, see the following:
229229

230-
- [Dockerfile](/reference/dockerfile.md)
231-
- [.dockerignore](/reference/dockerfile.md#dockerignore-file)
230+
- [Dockerfile](/reference/dockerfile)
231+
- [.dockerignore](/reference/dockerfile#dockerignore-file)
232232
- [compose.yaml](/reference/compose-file/_index.md)
233+
- [docker-entrypoint](/reference/dockerfile/#entrypoint)
233234

234235
## Run the application
235236

236-
Inside the `docker-ruby-on-rails` directory, run the following command in a
237-
terminal.
237+
To run the application, run the following command in a terminal inside the application's directory.
238238

239239
```console
240240
$ docker compose up --build

0 commit comments

Comments
 (0)