Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xZero707 committed Aug 28, 2023
1 parent e3574b9 commit ffccb2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Alpine based Docker image for nginx-unit with PHP module

Ready-to-use images:
```shell
nlss/unit-php
ghcr.io/n0rthernl1ghts/unit-php
```

Currently under active maintenance, so to be considered as unstable.
Expand All @@ -16,23 +16,23 @@ On container startup, unit is launched and then config.json is sent to the servi
```shell
docker run -it \
-v "/path/to/your/laravel_app:/app" \
nlss/unit-php
ghcr.io/n0rthernl1ghts/unit-php
```

And here's how to run with your own config:
```shell
docker run -it \
-v "/path/to/your/unit_config.json:/etc/unit/config.json" \
-v "/path/to/your/web_app:/app" \
nlss/unit-php
ghcr.io/n0rthernl1ghts/unit-php
```

You can also override path to unit configuration file with `UNIT_CONFIGURATION_FILE` environment variable:
```shell
docker run -it \
-e "UNIT_CONFIGURATION_FILE=/app/config/unit.json" \
-v "/path/to/your/web_app:/app" \
nlss/unit-php
ghcr.io/n0rthernl1ghts/unit-php
```

###### Extending the image
Expand All @@ -48,7 +48,7 @@ COPY ["./unit.json", "/etc/unit/config.json"]


# Main stage
FROM nlss/unit-php
FROM ghcr.io/n0rthernl1ghts/unit-php

# Copy prepared root filesystem (single layer)
COPY --from=rootfs ["/", "/"]
Expand All @@ -68,7 +68,7 @@ RUN set -eux \


#### Supervisor
This image comes bundled with [just-containers/s6-overlay](https://github.com/just-containers/s6-overlay) from build [nlss/s6-rootfs](https://github.com/N0rthernL1ghts/s6-rootfs).
This image comes bundled with [just-containers/s6-overlay](https://github.com/just-containers/s6-overlay) from build [ghcr.io/n0rthernl1ghts/s6-rootfs](https://github.com/N0rthernL1ghts/s6-rootfs).
To control supervisor behavior, you can use [it's environment variables](https://github.com/just-containers/s6-overlay#customizing-s6-behaviour).
<br></br>

Expand Down

0 comments on commit ffccb2a

Please sign in to comment.