[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)
|
||||
|
||||
### Deployment
|
||||
Web server can be built and deployed with docker compose, here is an
|
||||
example configuration:
|
||||
Web server can be deployed with docker compose, here is an example configuration:
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
security:
|
||||
image: mattersecurity
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./
|
||||
container_name: mattersecurity
|
||||
image: git.matterlinux.xyz/matter/security
|
||||
ports:
|
||||
- "127.0.0.1:9876:9876"
|
||||
volumes:
|
||||
- "./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
|
||||
docker-compose up -d
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user