-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 1.14 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
services:
redis:
image: redis:7
container_name: tinyflow-redis
command: ["redis-server","--appendonly","yes"]
ports:
- "6379:6379"
restart: unless-stopped
mysql:
image: mysql:8.0
container_name: tinyflow-mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=tiny-flow
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stopped
app:
build:
context: .
dockerfile: Dockerfile.app
container_name: tinyflow-app
depends_on:
- redis
- mysql
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/tiny-flow?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&connectionCollation=utf8mb4_unicode_ci
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=123456
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_TIMEOUT=100ms
- SERVER_PORT=8080
ports:
- "8080:8080"
restart: unless-stopped
volumes:
mysql_data: