Jpom/docker-compose.yml

37 lines
829 B
YAML
Raw Normal View History

version: '3.8'
services:
server:
2021-12-12 20:29:21 +08:00
image: jpom_server:${JPOM_VERSION}
build:
dockerfile: Dockerfile.server
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}
volumes:
- jpom-server:/usr/local/jpom-server
ports:
- "2122:2122"
agent:
2021-12-12 20:29:21 +08:00
image: jpom_agent:${JPOM_VERSION}
build:
dockerfile: Dockerfile.agent
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
"jpom.agent.url": http://agent:2123
volumes:
- jpom-agent:/usr/local/jpom-agent
ports:
- "2123:2123"
2021-12-13 19:43:55 +08:00
depends_on:
- server
volumes:
jpom-agent:
jpom-server: