Skip to content

Commit

Permalink
Updated docker compose command to start the application
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-alexandrov committed Dec 4, 2024
1 parent 0590eae commit d852ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/guides/ruby/containerize.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ The last thing that may be necessary, but not always required is `compose.yml` f
services:
web:
build: .
volumes:
- .:/myapp
environment:
- RAILS_MASTER_KEY
ports:
- "3000:80"
```
Expand All @@ -237,7 +237,7 @@ To learn more about the files, see the following:
To run the application, run the following command in a terminal inside the application's directory.

```console
$ docker compose up --build
$ RAILS_MASTER_KEY=<master_key_value> docker compose up --build
```

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

0 comments on commit d852ab5

Please sign in to comment.