mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
remove default docker-compose agent services
This commit is contained in:
parent
1cc8671ca2
commit
7fab5a43e9
57
docker-compose-local.yml
Normal file
57
docker-compose-local.yml
Normal 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:
|
@ -14,44 +14,6 @@ services:
|
|||||||
- jpom-server-log:/usr/local/jpom-server/log
|
- jpom-server-log:/usr/local/jpom-server/log
|
||||||
ports:
|
ports:
|
||||||
- "2122:2122"
|
- "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:
|
volumes:
|
||||||
jpom-agent01:
|
|
||||||
jpom-agent02:
|
|
||||||
jpom-server-data:
|
jpom-server-data:
|
||||||
jpom-server-log:
|
jpom-server-log:
|
||||||
|
@ -42,7 +42,8 @@ RUN set -eux; \
|
|||||||
;; \
|
;; \
|
||||||
esac; \
|
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 \
|
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/ \
|
&& npm config set registry https://registry.npmmirror.com/ \
|
||||||
&& cd web-vue && npm install && npm run build
|
&& cd web-vue && npm install && npm run build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user