-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.44 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.1'
services:
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- TZ=UTC
ports:
- ${DB_PORT}:3306
backup:
depends_on:
- db
image: deitch/mysql-backup
restart: always
user: "0"
volumes:
- ./db_backup:/db
environment:
- DB_DUMP_TARGET=/db
- DB_USER=root
- DB_PASS=${DB_PASSWORD}
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=2330
- DB_SERVER=db
tomcat:
depends_on:
- db
image: tomcat:9.0-jre8-alpine
restart: always
command: bash -c "apk add --update ttf-dejavu && rm -rf /var/cache/apk/* && catalina.sh run"
volumes:
- ./apps:/usr/local/tomcat/webapps/
- tomcat_test_result_attachments:/usr/local/tomcat/project
- tomcat_audit_attachments:/usr/local/tomcat/audits
links:
- db:database
ports:
- ${TOMCAT_PORT}:8080
update:
build:
context: .
dockerfile: Dockerfile
args:
BRANCH: ${BRANCH:-master}
DB_USER: root
DB_PASS: ${DB_PASSWORD}
environment:
BRANCH: ${BRANCH:-master}
DB_USER: root
DB_PASS: ${DB_PASSWORD}
volumes:
- ./apps:/app/webapps
depends_on:
- tomcat
volumes:
tomcat_test_result_attachments:
tomcat_audit_attachments: