feat: 添加 docker-compose 部署文件
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
lingniu_beta_network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
ln-bi:
|
||||||
|
image: harbor.lnh2e.com/lingniu-v1/ln-bi:main-1.0.0
|
||||||
|
ports:
|
||||||
|
- "8111:3001"
|
||||||
|
environment:
|
||||||
|
- DB_HOST=192.168.130.111
|
||||||
|
- DB_PORT=3306
|
||||||
|
- DB_USER=root
|
||||||
|
- DB_PASSWORD=lingniu#2024
|
||||||
|
- DB_NAME=lingniu_prod3
|
||||||
|
- SERVER_PORT=3001
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
||||||
|
labels:
|
||||||
|
- portainer.hide=false
|
||||||
|
- project=lingniu
|
||||||
|
networks:
|
||||||
|
- lingniu_beta_network
|
||||||
Reference in New Issue
Block a user