Skip to content

Commit

Permalink
Update docs to run compose detached
Browse files Browse the repository at this point in the history
  • Loading branch information
krakerag committed Nov 16, 2023
1 parent 1629336 commit 2a564b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image: gitpod/workspace-full
# Commands that will run on workspace start
tasks:
- name: Setup, Install & Build
command: docker compose up
command: docker compose up -d

# Ports to expose on workspace startup
ports:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ You can also run the below commands in a Gitpod instance without needing any con

## App specific functionality

We can use docker compose to get the application up and running in a local environment - just perform `docker compose up`
We can use docker compose to get the application up and running in a local environment - just perform `docker compose up -d`

This will build the image, copy the application in and run `perl app.pl` to start the application

You can visit it from your desktop by browsing to: http://127.0.0.1:3000/

## Continual work

Use `ctrl-c` to send a halt to docker compose and it will bring down the container gracefully.
Use `docker compose down` to send a halt to docker compose and it will bring down the container gracefully.

Update your code and rebuild your container with `docker compose up` as shown above
Update your code and rebuild your container with `docker compose up -d` as shown above

0 comments on commit 2a564b1

Please sign in to comment.