-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (46 loc) · 1.27 KB
/
docker-compose.yaml
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
version : "3"
services :
app :
build :
context : .
dockerfile : ./Dockerfile
ports :
- "8080:8080"
environment :
SPRING_DATASOURCE_URL : jdbc:mariadb://pol-mariadb:3306/polinsight?useSSL=false&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME : polinsight
SPRING_DATASOURCE_PASSWORD : polinsight
CUSTOM_CALLBACK_BASE : ${BASE_ADDRESS}
SPRING_MAIL_USERNAME : ${EMAIL_USER}
SPRING_MAIL_PASSWORD : ${EMAIL_PASSWORD}
volumes :
- ${BACKUP_DIRECTORY}/data:/app/data
- ${BACKUP_DIRECTORY}/logs:/app/logs
depends_on :
- "pol-mariadb"
restart : always
pol-mariadb :
image : mariadb:10.7.1
environment :
MYSQL_ROOT_PASSWORD : "root"
MYSQL_DATABASE : "polinsight"
MYSQL_USER : "polinsight"
MYSQL_PASSWORD : "polinsight"
command :
[
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
]
ports :
- 3306:3306
volumes :
- ${BACKUP_DIRECTORY}/data/database:/var/lib/mysql
restart : always
pol-redis :
image : redis:6.2.6
command : redis-server --port 6379
ports :
- 6379:6379
restart : always
networks :
polinsight_network :