-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (40 loc) · 1.3 KB
/
docker-compose.yml
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
mantisbt-sync-core:
build: ./core/
environment:
- SPRING_DATASOURCE_PLATFORM=mysql
- SPRING_DATASOURCE_URL=jdbc:mysql://mantisbt-sync-mysql:3306/mantisbt
- SPRING_DATASOURCE_USERNAME=mantisbt
- SPRING_DATASOURCE_PASSWORD=mantisbt
- MANTIS_ENDPOINT=
- MANTIS_AUTH_FILEPATH=
command: [-Xms64m, -Xmx128m, "-XX:PermSize=32m", "-XX:MaxPermSize=64m", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=30"]
volumes:
- /var/opt/applications/mantis-sync/core/batch/data/:/shared/data
ports:
- "8080"
links:
- mantisbt-sync-mysql
mantisbt-sync-mysql:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=mantisbt
- MYSQL_DATABASE=mantisbt
- MYSQL_USER=mantisbt
- MYSQL_PASSWORD=mantisbt
volumes:
- /var/opt/applications/mantis-sync/core/mysql/:/var/lib/mysql
ports:
- "3306"
mantisbt-sync-cron:
build: ./cron/
environment:
- BASE_URL=http://mantisbt-sync-core:8080/batch
- SCHEDULE=@every 6h
- COMMAND=/mantis-sync-cron/tasks.sh syncIssuesJob
- MANTIS_USERNAME=
- MANTIS_PASSWORD=
- MANTIS_PROJECT_ID=
ports:
- "18080"
links:
- mantisbt-sync-core