-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 2.1 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# up & run Prefect and FastFlows
# deploy flows from flows/ directory at the start
# or change on what ever you want
version: "3.9"
services:
fastflows:
build:
context: ../
dockerfile: ./docker/Dockerfile
ports:
- "5010:5010"
volumes:
- .:/app/src
- ../flows:/app/flows
image: fastflows
restart: always
environment:
FLOWS_HOME: "flows"
FLOWS_STORAGE_TYPE: "local"
LOGGING__LEVEL: "DEBUG"
PREFECT__API_TIMEOUT: 120
PREFECT__STORAGE__BASE_PATH: "s3://test-bucket"
PREFECT__STORAGE__BLOCK_NAME: "minio"
PREFECT__STORAGE__BLOCK_TYPE: "remote-file-system"
PREFECT__STORAGE__ENDPOINT_URL: "http://nginx:9000"
PREFECT__STORAGE__KEY: "0xoznLEXV3JHiOKx"
PREFECT__STORAGE__SECRET: "MmG3vfemCe5mpcxP66a1XvPnsIoXTlWs"
PREFECT__URI: "http://prefect:4200"
UVICORN__PORT: 5010
depends_on:
- prefect
- postgres
prefect:
image: prefecthq/prefect:2.3.0-python3.9
command: prefect orion start --host 0.0.0.0
restart: always
environment:
- EXTRA_PIP_PACKAGES=s3fs
- PREFECT_ORION_DATABASE_CONNECTION_URL=postgresql+asyncpg://postgres:postgres@postgres:5432/orion
ports:
- 4200:4200
prefect_work_queue:
image: prefecthq/prefect:2.3.0-python3.9
entrypoint: prefect work-queue create default
environment:
- PREFECT_API_URL=http://prefect:4200/api
restart: on-failure
depends_on:
- prefect
- postgres
prefect_agent:
image: prefecthq/prefect:2.3.0-python3.9
command: prefect agent start default
environment:
- EXTRA_PIP_PACKAGES=s3fs
- PREFECT_API_URL=http://prefect:4200/api
restart: on-failure
depends_on:
- prefect
- postgres
- prefect_work_queue
postgres:
image: postgres:13
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=orion
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql/data
volumes:
db:
driver: local
networks:
default:
name: prefect-network
external: true