添加docker部署
This commit is contained in:
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user