72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
version: '3.7'
|
|
|
|
networks:
|
|
prefect:
|
|
name: prefect
|
|
driver: bridge
|
|
|
|
services:
|
|
minio:
|
|
image: minio/minio:latest
|
|
restart: always
|
|
environment:
|
|
MINIO_ROOT_USER: root
|
|
MINIO_ROOT_PASSWORD: minio_password
|
|
ports:
|
|
- 9000:9000
|
|
- 9001:9001
|
|
volumes:
|
|
- ~/python/test_prefect/service/minio:/data
|
|
command:
|
|
- server
|
|
- --console-address
|
|
- :9001
|
|
- /data
|
|
networks:
|
|
- prefect
|
|
|
|
prefect-server:
|
|
image: prefecthq/prefect:2.8.7-python3.10
|
|
restart: always
|
|
ports:
|
|
- 4200:4200
|
|
volumes:
|
|
- ~/python/test_prefect/service/prefect:/root/.prefect
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://0.0.0.0:4200"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
command: bash -c "apt update && apt install -y curl && prefect orion start"
|
|
depends_on:
|
|
minio:
|
|
condition: service_started
|
|
environment:
|
|
PREFECT_DEBUG_MODE: 'True'
|
|
PREFECT_ORION_API_HOST: 0.0.0.0
|
|
PREFECT_ORION_API_PORT: 4200
|
|
PREFECT_API_URL: http://127.0.0.1:4200/api
|
|
networks:
|
|
- prefect
|
|
|
|
prefect-agent:
|
|
image: prefecthq/prefect:2.8.7-python3.10
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command:
|
|
- prefect
|
|
- agent
|
|
- start
|
|
- -q
|
|
- default
|
|
depends_on:
|
|
prefect-server:
|
|
condition: service_started
|
|
environment:
|
|
PREFECT_API_URL: http://prefect-server:4200/api
|
|
PREFECT_LOGGING_LEVEL: DEBUG
|
|
DOCKER_HOST: unix://var/run/docker.sock
|
|
networks:
|
|
- prefect |