2022-08-24 16:47:33 +08:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
server:
|
2023-03-21 21:44:32 +08:00
|
|
|
env_file:
|
|
|
|
- env-release.env
|
2022-08-24 16:47:33 +08:00
|
|
|
image: jpomdocker/jpom:server-${JPOM_VERSION}
|
|
|
|
build:
|
|
|
|
dockerfile: ./modules/server/Dockerfile
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
JPOM_VERSION: ${JPOM_VERSION}
|
|
|
|
environment:
|
2022-12-09 15:13:01 +08:00
|
|
|
"JPOM_SERVER_TEMP_TOKEN": ${SERVER_TOKEN}
|
2022-08-24 16:47:33 +08:00
|
|
|
volumes:
|
|
|
|
- jpom-server-data:/usr/local/jpom-server/data
|
2023-01-05 12:54:35 +08:00
|
|
|
- jpom-server-logs:/usr/local/jpom-server/logs
|
|
|
|
- jpom-server-conf:/usr/local/jpom-server/conf
|
2022-08-24 16:47:33 +08:00
|
|
|
ports:
|
|
|
|
- "2122:2122"
|
2022-12-09 15:13:01 +08:00
|
|
|
hostname: server
|
2022-08-24 16:47:33 +08:00
|
|
|
agent01:
|
2023-03-21 21:44:32 +08:00
|
|
|
env_file:
|
|
|
|
- env-release.env
|
2022-08-24 16:47:33 +08:00
|
|
|
image: jpomdocker/jpom:agent-${JPOM_VERSION}
|
|
|
|
build:
|
|
|
|
dockerfile: ./modules/agent/Dockerfile
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
JPOM_VERSION: ${JPOM_VERSION}
|
2022-12-09 15:13:01 +08:00
|
|
|
RUN_ARG: --auto-push-to-server 'http://server:2122/api/node/receive_push?token=${SERVER_TOKEN}&workspaceId=DEFAULT'
|
|
|
|
|
2022-08-24 16:47:33 +08:00
|
|
|
volumes:
|
|
|
|
- jpom-agent01:/usr/local/jpom-agent
|
|
|
|
ports:
|
|
|
|
- "2123:2123"
|
|
|
|
depends_on:
|
|
|
|
- server
|
2022-12-09 15:13:01 +08:00
|
|
|
hostname: agent01
|
2022-08-24 16:47:33 +08:00
|
|
|
agent02:
|
2023-03-21 21:44:32 +08:00
|
|
|
env_file:
|
|
|
|
- env-release.env
|
2022-08-24 16:47:33 +08:00
|
|
|
image: jpomdocker/jpom:agent-${JPOM_VERSION}
|
|
|
|
build:
|
|
|
|
dockerfile: ./modules/agent/Dockerfile
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
JPOM_VERSION: ${JPOM_VERSION}
|
2022-12-09 15:13:01 +08:00
|
|
|
RUN_ARG: --auto-push-to-server 'http://server:2122/api/node/receive_push?token=${SERVER_TOKEN}&workspaceId=DEFAULT'
|
|
|
|
|
2022-08-24 16:47:33 +08:00
|
|
|
volumes:
|
|
|
|
- jpom-agent02:/usr/local/jpom-agent
|
|
|
|
ports:
|
|
|
|
- "2124:2123"
|
|
|
|
depends_on:
|
|
|
|
- server
|
2022-12-09 15:13:01 +08:00
|
|
|
hostname: agent02
|
2022-08-24 16:47:33 +08:00
|
|
|
volumes:
|
|
|
|
jpom-agent01:
|
|
|
|
jpom-agent02:
|
|
|
|
jpom-server-data:
|
2023-01-05 12:54:35 +08:00
|
|
|
jpom-server-logs:
|
|
|
|
jpom-server-conf:
|