Skip to content

Commit d852ab5

Browse files
Updated docker compose command to start the application
1 parent 0590eae commit d852ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/guides/ruby/containerize.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ The last thing that may be necessary, but not always required is `compose.yml` f
212212
services:
213213
web:
214214
build: .
215-
volumes:
216-
- .:/myapp
215+
environment:
216+
- RAILS_MASTER_KEY
217217
ports:
218218
- "3000:80"
219219
```
@@ -237,7 +237,7 @@ To learn more about the files, see the following:
237237
To run the application, run the following command in a terminal inside the application's directory.
238238

239239
```console
240-
$ docker compose up --build
240+
$ RAILS_MASTER_KEY=<master_key_value> docker compose up --build
241241
```
242242

243243
Open a browser and view the application at [http://localhost:3000](http://localhost:3000). You should see a simple Ruby on Rails application.

0 commit comments

Comments
 (0)