-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 931 Bytes
/
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
name: tang-boot
services:
mysql:
container_name: mysql
image: mysql:8.3.0
ports:
- "3306:3306"
restart: always
build:
context: ./docker/mysql
volumes:
- ./docker/mysql/conf:/etc/mysql/conf.d
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/logs:/logs
environment:
MYSQL_ROOT_PASSWORD: password
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --default-time-zone=+8:00
- --lower-case-table-names=1
redis:
container_name: redis
image: redis:7.2.4
ports:
- "6379:6379"
restart: always
build:
context: ./docker/redis
volumes:
- ./docker/redis/conf/redis.conf:/opt/redis/redis.conf
- ./docker/redis/data:/data
- ./docker/redis/logs:/logs
environment:
- REDIS_PASSWORD=password
command:
redis-server /opt/redis/redis.conf