-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
60 lines (55 loc) · 1.2 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
51
52
53
54
55
56
57
58
59
60
name: kenko-drive
services:
application:
build:
context: .
dockerfile: Dockerfile
network_mode: service:redis
volumes:
- /srv/kenko-drive/data:/app/data
restart: always
depends_on:
redis:
condition: service_healthy
mysql:
condition: service_healthy
redis:
image: redis:7-alpine
volumes:
- redis-data:/data
ports:
- "6677:6677"
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 3
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: drive
MYSQL_USER: drive
MYSQL_PASSWORD: drive
network_mode: service:redis
volumes:
- /srv/kenko-drive/mysql/data:/var/lib/mysql
restart: always
healthcheck:
test: [ "CMD", "mysql", "-uroot", "-proot", "-e", "SELECT 1" ]
interval: 10s
minio:
image: minio/minio
network_mode: service:redis
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: password
volumes:
- /srv/kenko-drive/minio/data:/data
restart: always
command:
- server
- /data
volumes:
redis-data: