修正docker-compose
This commit is contained in:
parent
bf897b9743
commit
4f2b957598
@ -1,20 +0,0 @@
|
|||||||
name: Deploy to Server
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main # 当推送到 main 分支时触发工作流
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: RunnerLabel # 使用自托管的 Gitea Runner
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2 # 从 Gitea 仓库中拉取代码
|
|
||||||
|
|
||||||
- name: Set up Docker
|
|
||||||
run: |
|
|
||||||
docker-compose down # 停止现有服务
|
|
||||||
docker-compose pull # 拉取最新镜像
|
|
||||||
docker-compose up -d # 启动服务
|
|
@ -60,8 +60,8 @@ services:
|
|||||||
# Gateway service
|
# Gateway service
|
||||||
gateway:
|
gateway:
|
||||||
build:
|
build:
|
||||||
context: ./apps/gateway
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/gateway/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "10001:10001"
|
- "10001:10001"
|
||||||
environment:
|
environment:
|
||||||
@ -76,8 +76,8 @@ services:
|
|||||||
# Admin service
|
# Admin service
|
||||||
admin:
|
admin:
|
||||||
build:
|
build:
|
||||||
context: ./apps/admin
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/admin/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "10002:10002"
|
- "10002:10002"
|
||||||
environment:
|
environment:
|
||||||
@ -92,8 +92,8 @@ services:
|
|||||||
# API service
|
# API service
|
||||||
api:
|
api:
|
||||||
build:
|
build:
|
||||||
context: ./apps/api
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/api/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "10003:10003"
|
- "10003:10003"
|
||||||
environment:
|
environment:
|
||||||
@ -110,8 +110,8 @@ services:
|
|||||||
# MQS service
|
# MQS service
|
||||||
mqs:
|
mqs:
|
||||||
build:
|
build:
|
||||||
context: ./apps/mqs
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/mqs/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "12001:12001"
|
- "12001:12001"
|
||||||
environment:
|
environment:
|
||||||
@ -127,8 +127,8 @@ services:
|
|||||||
# Sentinel service
|
# Sentinel service
|
||||||
sentinel:
|
sentinel:
|
||||||
build:
|
build:
|
||||||
context: ./apps/sentinel
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/sentinel/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "11002:11002"
|
- "11002:11002"
|
||||||
environment:
|
environment:
|
||||||
@ -141,8 +141,8 @@ services:
|
|||||||
# User service
|
# User service
|
||||||
user:
|
user:
|
||||||
build:
|
build:
|
||||||
context: ./apps/user
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./apps/user/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "11001:11001"
|
- "11001:11001"
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user