Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Oct 24, 2024
1 parent 92b30fa commit eed5d97
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ git tag 2024.11.1
## Run docker image

```shell
docker run -i --rm -e APP_NAME=Micronaut --env-file ./.env a002k/micronaut
docker run -i --rm a002k/micronaut
```

```shell
Expand All @@ -52,16 +52,10 @@ docker run -d --name micronaut --rm a002k/micronaut

- ```-i``` Keep STDIN open even if not attached
- ```--rm``` Remove container after stop
- ```-e``` [Set environment variables](https://docs.docker.com/reference/cli/docker/container/run/#env)
- ```--env-file``` set file name with environment variables
- ```-e APP_NAME=Micronaut``` [Set environment variables](https://docs.docker.com/reference/cli/docker/container/run/#env)
- ```--env-file ./.env``` set file name with environment variables
- ```-d``` Detach mode, Run container in background and print container ID

or via docker-compose

```shell
docker compose run -d --name micronaut --rm micronaut
```

and follow ```-f``` logs

```shell
Expand All @@ -77,7 +71,7 @@ docker stop micronaut
## Run docker image as docker-compose

```shell
APP_NAME=Micronaut docker compose up -d
docker compose run -d --name micronaut --rm micronaut
```

and follow ```-f``` logs
Expand Down

0 comments on commit eed5d97

Please sign in to comment.