-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (49 loc) · 1.33 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
version: '3'
services:
prefect-server:
container_name: prefect_workflow_server
image: saxswaxs_workflows
build: .
restart: always
command: prefect server start --host 0.0.0.0
volumes:
- ./prefect:/root/.prefect
ports:
- 4200:4200
networks:
- workflow_viz_default
prefect-worker:
container_name: prefect_workflow_worker
image: saxswaxs_workflows
command: prefect worker start --pool 'reduction-pool'
environment:
PREFECT_API_URL: "http://prefect-server:4200/api"
TILED_URI: "http://tiled:8888"
TILED_API_KEY: "${TILED_API_KEY}"
PATH_TO_DATA: "/data"
networks:
- workflow_viz_default
depends_on:
- prefect-cli
volumes:
- ${PATH_TO_DATA}:/data
- ./prefect.yaml:/app/prefect.yaml
prefect-cli:
container_name: prefect-workflow-cli
image: saxswaxs_workflows
command: bash -c "/app/create_deployments.sh"
volumes:
- ${PATH_TO_DATA}:/data
- ./create_deployments.sh:/app/create_deployments.sh
environment:
PREFECT_API_URL: "http://prefect-server:4200/api"
TILED_API_KEY: ${TILED_API_KEY}
TILED_URI: "http://tiled:8888"
PATH_TO_DATA: "/data"
networks:
- workflow_viz_default
depends_on:
- prefect-server
networks:
workflow_viz_default:
external: true