-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1002 Bytes
/
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
version: '3.8'
x-template: &template
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
args:
- PREFECT_PROJECT_NAME=etude-Prefect
environment:
- PREFECT_PROJECT_NAME=etude-Prefect
volumes:
- /var/run/docker.sock:/var/run/docker.sock
init: true
services:
server:
<<: *template
build:
context: server
healthcheck:
test: curl -f 'http://host.docker.internal:4200/graphql' || test $$? -eq 22
start_period: 10s
interval: 3s
timeout: 3s
agent:
<<: *template
build:
context: agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- flows_storage:/root/.prefect/flows
depends_on:
server:
condition: service_healthy
flow:
<<: *template
build:
context: flow
volumes:
- ./flow:/flow
- flows_storage:/root/.prefect/flows
depends_on:
server:
condition: service_healthy
restart: "no"
volumes:
flows_storage: