97 lines
2.4 KiB
YAML
97 lines
2.4 KiB
YAML
version: "3"
|
|
services:
|
|
redis:
|
|
image: redis:6-alpine
|
|
container_name: redis
|
|
network_mode: host
|
|
command: >
|
|
--requirepass dragonfly
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli","-a","dragonfly","ping"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
|
|
mysql:
|
|
image: mariadb:10.6
|
|
container_name: mysql
|
|
network_mode: host
|
|
environment:
|
|
- MARIADB_USER=dragonfly
|
|
- MARIADB_PASSWORD=dragonfly
|
|
- MARIADB_DATABASE=manager
|
|
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "mysqladmin status"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
|
|
manager:
|
|
image: dragonflyoss/manager:v2.0.3
|
|
container_name: manager
|
|
network_mode: host
|
|
depends_on:
|
|
- redis
|
|
- mysql
|
|
restart: always
|
|
volumes:
|
|
- /tmp/log/dragonfly:/var/log/dragonfly
|
|
- ./config/manager.yaml:/etc/dragonfly/manager.yaml:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/bin/grpc_health_probe -addr=:65003 || exit 1"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
|
|
dfdaemon:
|
|
image: dragonflyoss/dfdaemon:v2.0.3
|
|
depends_on:
|
|
- manager
|
|
- scheduler
|
|
- seed-peer
|
|
container_name: dfdaemon
|
|
network_mode: host
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/bin/grpc_health_probe -addr=:65000 || exit 1"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
volumes:
|
|
- /tmp/log/dragonfly:/var/log/dragonfly
|
|
- ./config/dfget.yaml:/etc/dragonfly/dfget.yaml:ro
|
|
|
|
scheduler:
|
|
image: dragonflyoss/scheduler:v2.0.3
|
|
depends_on:
|
|
- manager
|
|
container_name: scheduler
|
|
network_mode: host
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/bin/grpc_health_probe -addr=:8002 || exit 1"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
volumes:
|
|
- /tmp/log/dragonfly:/var/log/dragonfly
|
|
- ./config/scheduler.yaml:/etc/dragonfly/scheduler.yaml:ro
|
|
|
|
seed-peer:
|
|
image: dragonflyoss/dfdaemon:v2.0.3
|
|
depends_on:
|
|
- manager
|
|
- scheduler
|
|
container_name: seed-peer
|
|
network_mode: host
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/bin/grpc_health_probe -addr=:65100 || exit 1"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 30
|
|
volumes:
|
|
- /tmp/log/dragonfly:/var/log/dragonfly
|
|
- ./config/seed-peer.yaml:/etc/dragonfly/dfget.yaml:ro
|