remove default docker-compose agent services

This commit is contained in:
bwcx_jzy 2022-08-24 16:47:33 +08:00
parent 1cc8671ca2
commit 7fab5a43e9
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
3 changed files with 59 additions and 39 deletions

57
docker-compose-local.yml Normal file
View File

@ -0,0 +1,57 @@
version: '3.8'
services:
server:
image: jpomdocker/jpom:server-${JPOM_VERSION}
build:
dockerfile: ./modules/server/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.authorize.token": ${SERVER_TOKEN}
volumes:
- jpom-server-data:/usr/local/jpom-server/data
- jpom-server-log:/usr/local/jpom-server/log
ports:
- "2122:2122"
agent01:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.server.token": ${SERVER_TOKEN}
"jpom.server.url": http://server:2122
"jpom.agent.id": agent01
"jpom.agent.url": http://agent01:2123
volumes:
- jpom-agent01:/usr/local/jpom-agent
ports:
- "2123:2123"
depends_on:
- server
agent02:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.server.token": ${SERVER_TOKEN}
"jpom.server.url": http://server:2122
"jpom.agent.id": agent02
"jpom.agent.url": http://agent02:2123
volumes:
- jpom-agent02:/usr/local/jpom-agent
ports:
- "2124:2123"
depends_on:
- server
volumes:
jpom-agent01:
jpom-agent02:
jpom-server-data:
jpom-server-log:

View File

@ -14,44 +14,6 @@ services:
- jpom-server-log:/usr/local/jpom-server/log
ports:
- "2122:2122"
agent01:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.server.token": ${SERVER_TOKEN}
"jpom.server.url": http://server:2122
"jpom.agent.id": agent01
"jpom.agent.url": http://agent01:2123
volumes:
- jpom-agent01:/usr/local/jpom-agent
ports:
- "2123:2123"
depends_on:
- server
agent02:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.server.token": ${SERVER_TOKEN}
"jpom.server.url": http://server:2122
"jpom.agent.id": agent02
"jpom.agent.url": http://agent02:2123
volumes:
- jpom-agent02:/usr/local/jpom-agent
ports:
- "2124:2123"
depends_on:
- server
volumes:
jpom-agent01:
jpom-agent02:
jpom-server-data:
jpom-server-log:

View File

@ -42,7 +42,8 @@ RUN set -eux; \
;; \
esac; \
curl -LfsSo /opt/node-v16.13.1-linux-${BINARY_ARCH}.tar.gz https://npmmirror.com/mirrors/node/v16.13.1/node-v16.13.1-linux-${BINARY_ARCH}.tar.gz \
&& tar -zxvf /opt/node-v16.13.1-linux-${BINARY_ARCH}.tar.gz -C /opt/ && export PATH=/opt/node-v16.13.1-linux-${BINARY_ARCH}/bin:$PATH \
&& tar -zxvf /opt/node-v16.13.1-linux-${BINARY_ARCH}.tar.gz -C /opt/ \
&& export PATH=/opt/node-v16.13.1-linux-${BINARY_ARCH}/bin:$PATH \
&& npm config set registry https://registry.npmmirror.com/ \
&& cd web-vue && npm install && npm run build