[skip ci] update: readme deployment instructions

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-28 08:40:41 +03:00
parent 72ed0001ba
commit 90571076f0
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -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
``` ```