[skip ci] update: readme deployment instructions
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
72ed0001ba
commit
90571076f0
14
README.md
14
README.md
@ -3,23 +3,19 @@ Soruce code of MatterLinux's security tracker, located at
|
|||||||
[security.matterlinux.xyz](https://security.matterlinux.xyz)
|
[security.matterlinux.xyz](https://security.matterlinux.xyz)
|
||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
Web server can be built and deployed with docker compose, here is an
|
Web server can be deployed with docker compose, here is an example configuration:
|
||||||
example configuration:
|
|
||||||
```yaml
|
```yaml
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
security:
|
security:
|
||||||
image: mattersecurity
|
container_name: mattersecurity
|
||||||
restart: unless-stopped
|
image: git.matterlinux.xyz/matter/security
|
||||||
build:
|
|
||||||
context: ./
|
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:9876:9876"
|
- "127.0.0.1:9876:9876"
|
||||||
volumes:
|
volumes:
|
||||||
- "./db:/app/db"
|
- "./db:/app/db"
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
After saving the configuration file, you can build and run the docker container:
|
After saving the configuration file, you can run the docker container:
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user