Skip to content

Commit

Permalink
build: update for docker compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHulme committed Sep 30, 2024
1 parent 5f5325e commit 8160630
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ You must have Docker Desktop installed on your machine. Then the only command
you should need to run is:

```shell
docker-compose up
docker compose up
```

Variations on this command include:

- `docker-compose up -d` which starts the container as a background task
(freeing up the terminal). You can then use `docker-compose down` to turn it
- `docker compose up -d` which starts the container as a background task
(freeing up the terminal). You can then use `docker compose down` to turn it
off again.
- `GENERATE_CONFIG=false docker-compose up` which will avoid running the
- `GENERATE_CONFIG=false docker compose up` which will avoid running the
`config:generate` rake task as Limber is started.
- `PRECOMPILE_ASSETS=false docker-compose up` which will avoid precompiling the
- `PRECOMPILE_ASSETS=false docker compose up` which will avoid precompiling the
assets as Limber is started.
- `docker-compose up --build` which forces a rebuild of the Docker image if your
- `docker compose up --build` which forces a rebuild of the Docker image if your
changes to the Dockerfile or related scripts don't seem to be taking effect.

Limber should be accessible via [http://localhost:3001](http://localhost:3001).
Expand Down Expand Up @@ -158,7 +158,7 @@ Alternatively, run `./compile_build.sh` to compile the build files or run `yarn
If during development changes do not seem to be taking effect, try:
- Restart the application:
- Destroy and recreate the Docker container `docker-compose down && GENERATE_CONFIG=false docker-compose up -d`
- Destroy and recreate the Docker container `docker compose down && GENERATE_CONFIG=false docker compose up -d`
- Rebuild the Docker image, particularly useful for changing dependencies
- Clobber local resources `rails assets:clobber`
Expand All @@ -167,7 +167,7 @@ If during development changes do not seem to be taking effect, try:
The rest of the sections shown here were written for and apply to the native
installation, but can also be used in the Docker container if required. In order
to use Docker, it's probably best to create a shell in the running container.
Assuming you started the container via `docker-compose` you can access the shell
Assuming you started the container via `docker compose` you can access the shell
using:
```shell
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.3'
services:
limber:
build:
Expand Down

0 comments on commit 8160630

Please sign in to comment.