25 lines
567 B
YAML
25 lines
567 B
YAML
services:
|
|
prefect-server:
|
|
image: prefecthq/prefect:3-python3.12
|
|
container_name: prefect-server
|
|
command: prefect server start --host 0.0.0.0
|
|
environment:
|
|
PREFECT_UI_API_URL: http://192.168.124.92:4200/api
|
|
ports:
|
|
- "4200:4200"
|
|
volumes:
|
|
- prefect-data:/root/.prefect
|
|
restart: unless-stopped
|
|
|
|
prefect-worker:
|
|
build: .
|
|
container_name: prefect-worker
|
|
environment:
|
|
PREFECT_API_URL: http://prefect-server:4200/api
|
|
depends_on:
|
|
- prefect-server
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
prefect-data:
|