修改
continuous-integration/drone/push Build encountered an error Details

master
zzx 2023-03-15 16:20:47 +08:00
parent 442a64b451
commit 55f0341525
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: linear-dreamwebsite-front-pipeline name: linear-wctdreamwebsite-front-pipeline
platform: platform:
os: linux os: linux
@ -105,15 +105,15 @@ steps:
key: key:
from_secret: SSH_KEY from_secret: SSH_KEY
source: ./source/ source: ./source/
target: /wwwroot/dreamwebsite-front target: /wwwroot/wctdreamwebsite-front
include: [] include: []
exclude: [] exclude: []
script: script:
- cd /wwwroot/dreamwebsite-front - cd /wwwroot/wctdreamwebsite-front
- ls -al - ls -al
- docker-compose down - docker-compose down
- docker-compose up --build -d - docker-compose up --build -d
- docker ps | grep dreamwebsite-front - docker ps | grep wctdreamwebsite-front
when: when:
status: [ success ] status: [ success ]

View File

@ -9,11 +9,11 @@ services:
cap_add: cap_add:
- ALL - ALL
restart: always restart: always
container_name: dreamwebsite-front container_name: wctdreamwebsite-front
expose: expose:
- 3000 - 3000
ports: ports:
- 3001:3000 - 3004:3000
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
volumes: volumes:
@ -24,7 +24,7 @@ services:
working_dir: /wwwroot working_dir: /wwwroot
networks: networks:
default: default:
ipv4_address: 172.20.0.4 ipv4_address: 172.20.0.5
#docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.1 net-website #docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.1 net-website
networks: networks: