forked from dromara/Jpom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 829 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.8'
services:
server:
image: jpom_server:${JPOM_VERSION}
build:
dockerfile: Dockerfile.server
context: .
args:
JPOM_VERSION: ${JPOM_VERSION}
environment:
"jpom.authorize.token": ${SERVER_TOKEN}
volumes:
- jpom-server:/usr/local/jpom-server
ports:
- "2122:2122"
agent:
image: jpom_agent:${JPOM_VERSION}
build:
dockerfile: Dockerfile.agent
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://agent:2123
volumes:
- jpom-agent:/usr/local/jpom-agent
ports:
- "2123:2123"
depends_on:
- server
volumes:
jpom-agent:
jpom-server: