添加docker部署

This commit is contained in:
2025-12-23 10:28:15 +08:00
parent bb57b14cb8
commit 0f44ef1338
3 changed files with 58 additions and 1 deletions

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3.8'
services:
api:
build: . # 自动寻找当前目录下的 Dockerfile
image: wiki-backend:latest
container_name: wiki_backend
ports:
- "8000:8000"
environment:
- DB_USER=postgres
- DB_PASS=DXC_welcome001
- DB_HOST=8.155.144.6
- DB_PORT=25432
- DB_NAME=wiki_crawler
restart: always