Jpom/docker-compose-local.yml
bwcx_jzy 5ddae739fc
docker-compose 构建缓存
取消插件端配置化向服务端注册功能
取消服务端授权 token 配置
2022-12-09 15:13:01 +08:00

55 lines
1.4 KiB
YAML

version: '3.8'
services:
server:
image: jpomdocker/jpom:server-${JPOM_VERSION}
build:
dockerfile: ./modules/server/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"JPOM_SERVER_TEMP_TOKEN": ${SERVER_TOKEN}
volumes:
- jpom-server-data:/usr/local/jpom-server/data
- jpom-server-log:/usr/local/jpom-server/log
ports:
- "2122:2122"
hostname: server
agent01:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
RUN_ARG: --auto-push-to-server 'http://server:2122/api/node/receive_push?token=${SERVER_TOKEN}&workspaceId=DEFAULT'
volumes:
- jpom-agent01:/usr/local/jpom-agent
ports:
- "2123:2123"
depends_on:
- server
hostname: agent01
agent02:
image: jpomdocker/jpom:agent-${JPOM_VERSION}
build:
dockerfile: ./modules/agent/Dockerfile
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
RUN_ARG: --auto-push-to-server 'http://server:2122/api/node/receive_push?token=${SERVER_TOKEN}&workspaceId=DEFAULT'
volumes:
- jpom-agent02:/usr/local/jpom-agent
ports:
- "2124:2123"
depends_on:
- server
hostname: agent02
volumes:
jpom-agent01:
jpom-agent02:
jpom-server-data:
jpom-server-log: