-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.01 KB
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
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
mysql:
image: mysql:5.7
container_name: mysql_jasperserver
# Uncomment if you want access to DB access from Host
# ports:
# - "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql
volumes:
- ./datadir:/var/lib/mysql
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 120s
jasperserver:
image: retriever/jasperserver:7.5.0
container_name: jasperserver
ports:
- "8080:8080"
environment:
- DB_TYPE=mysql
- DB_HOST=mysql_jasperserver
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=mysql
volumes:
# Relative path on the host/volume on container
- ./jasperserver-import:/jasperserver-import
depends_on:
- mysql
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 120s