[fix] 更新docker部署的相关错误 (#15)

This commit is contained in:
rootwhois
2025-10-13 15:42:26 +08:00
committed by GitHub
parent 49d45098d3
commit 8059b59a22
3 changed files with 13 additions and 6 deletions

View File

@@ -105,5 +105,5 @@ mkdir /data/vulnfeed/config -p
```bash
docker-compose up -d
docker exec CONTAINER_NAME /app/vulnfeed create-super-user -c /app/vulnfeed/config.toml -p "密码"
docker exec CONTAINER_NAME /app/vulnfeed create-super-user -c /app/config.toml -p "密码"
```

View File

@@ -7,7 +7,7 @@ secret = "LSJ74YUWkzGheiWMRxcH" # for development
expiration = 604800 # 7 days
[database]
host = "127.0.0.1"
host = "postgres"
port = 5432
username = "postgres"
password = "YSm*wF60c72CLJD!"

View File

@@ -1,4 +1,4 @@
version: "3.1"
version: "3.8"
services:
postgres:
@@ -19,14 +19,21 @@ services:
volumes:
- "./data/:/var/lib/postgresql/data/"
ports:
- "127.0.0.1:5432:5432"
- "0.0.0.0:5432:5432"
privileged: true
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d vulnfeed"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
vulnfeed:
image: fantasticzf/vulnfeed:latest
restart: always
depends_on:
- postgres
postgres:
condition: service_healthy
volumes:
- "./config/config.toml:/app/config.toml"
privileged: true
@@ -38,4 +45,4 @@ networks:
vulnfeed-net:
name: vulnfeed-net
ipam:
driver: default
driver: default