-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (59 loc) · 1.25 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"
services:
mysql:
image: mysql:8
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- TZ=Asia/Seoul
- MYSQL_USER=soup
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=soup
- MYSQL_ROOT_PASSWORD=password
command:
- --lower_case_table_names=1
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
ports:
- "3306:3306"
networks:
- soup
redis:
image: redis:6
volumes:
- ./data/redis:/data
command: redis-server --port 6379
ports:
- "6379:6379"
networks:
- soup
minio:
image: minio/minio
volumes:
- ./data/minio:/bucket
environment:
- MINIO_ROOT_USER=soup
- MINIO_ROOT_PASSWORD=password
command: server --address ":9000" --console-address ":9001" /bucket
ports:
- "9000:9000"
- "9001:9001"
networks:
- soup
create-bucket:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add soup http://minio:9000 soup password;
/usr/bin/mc mb soup/bucket;
/usr/bin/mc policy set public soup/bucket;
exit 0;
"
networks:
- soup
networks:
soup:
labels:
- soup