2021-12-12 09:53:10 +08:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
server:
|
2021-12-30 19:51:15 +08:00
|
|
|
image: jpomdocker/jpom:server-${JPOM_VERSION}
|
2021-12-12 09:53:10 +08:00
|
|
|
build:
|
2021-12-30 21:46:42 +08:00
|
|
|
dockerfile: ./modules/server/Dockerfile
|
2021-12-12 09:53:10 +08:00
|
|
|
context: .
|
2021-12-12 20:29:21 +08:00
|
|
|
args:
|
|
|
|
JPOM_VERSION: ${JPOM_VERSION}
|
2021-12-13 19:43:55 +08:00
|
|
|
environment:
|
|
|
|
"jpom.authorize.token": ${SERVER_TOKEN}
|
2021-12-12 09:53:10 +08:00
|
|
|
volumes:
|
|
|
|
- jpom-server:/usr/local/jpom-server
|
|
|
|
ports:
|
|
|
|
- "2122:2122"
|
2021-12-30 19:51:15 +08:00
|
|
|
agent01:
|
|
|
|
image: jpomdocker/jpom:agent-${JPOM_VERSION}
|
2021-12-12 09:53:10 +08:00
|
|
|
build:
|
2021-12-30 21:46:42 +08:00
|
|
|
dockerfile: ./modules/agent/Dockerfile
|
2021-12-12 09:53:10 +08:00
|
|
|
context: .
|
2021-12-12 20:29:21 +08:00
|
|
|
args:
|
|
|
|
JPOM_VERSION: ${JPOM_VERSION}
|
2021-12-13 19:43:55 +08:00
|
|
|
environment:
|
|
|
|
"jpom.server.token": ${SERVER_TOKEN}
|
|
|
|
"jpom.server.url": http://server:2122
|
|
|
|
"jpom.agent.id": agent01
|
2021-12-30 19:51:15 +08:00
|
|
|
"jpom.agent.url": http://agent01:2123
|
2021-12-12 09:53:10 +08:00
|
|
|
volumes:
|
2021-12-30 19:51:15 +08:00
|
|
|
- jpom-agent01:/usr/local/jpom-agent
|
2021-12-12 09:53:10 +08:00
|
|
|
ports:
|
|
|
|
- "2123:2123"
|
2021-12-13 19:43:55 +08:00
|
|
|
depends_on:
|
|
|
|
- server
|
2021-12-30 19:51:15 +08:00
|
|
|
agent02:
|
|
|
|
image: jpomdocker/jpom:agent-${JPOM_VERSION}
|
|
|
|
build:
|
2021-12-30 21:46:42 +08:00
|
|
|
dockerfile: ./modules/agent/Dockerfile
|
2021-12-30 19:51:15 +08:00
|
|
|
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
|
2021-12-12 09:53:10 +08:00
|
|
|
volumes:
|
2021-12-30 19:51:15 +08:00
|
|
|
jpom-agent01:
|
|
|
|
jpom-agent02:
|
2021-12-12 09:53:10 +08:00
|
|
|
jpom-server:
|