-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.production.yaml
More file actions
90 lines (83 loc) · 1.74 KB
/
docker-compose.production.yaml
File metadata and controls
90 lines (83 loc) · 1.74 KB
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
85
86
87
88
89
90
version: '3.8'
services:
prefect-server:
build:
context: ./Docker/prefect-server
dockerfile: Dockerfile
command: prefect server start --host 0.0.0.0
ports:
- '4200:4200'
env_file:
- .env
environment:
- PREFECT_API_URL=${PREFECT_API_URL_SERVER}
restart: always
healthcheck:
test: ['CMD-SHELL', 'curl -f ${PREFECT_API_URL_SERVER}/health || exit 1']
interval: 10s
timeout: 5s
retries: 10
prefect-agent:
build:
context: .
dockerfile: ./Docker/prefect-agent/Dockerfile
env_file:
- .env
environment:
- PREFECT_API_URL=${PREFECT_API_URL_AGENT}
volumes:
- ${LOCAL_PERSIST_DIRECTORY}:${PERSIST_DIRECTORY}
restart: always
depends_on:
prefect-server:
condition: service_healthy
minio:
image: minio/minio
env_file:
- .env
ports:
- '9000:9000'
- '9001:9001'
networks:
backend-net:
aliases:
- ${MINIO_HOST}
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.production
args:
MINIO_HOST: ${MINIO_HOST}
ports:
- '80:80'
networks:
- backend-net
environment:
- HOST=0.0.0.0
- REACT_APP_MINIO_HOST=${MINIO_HOST}
env_file:
- .env
restart: always
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- '8000:8000'
networks:
- backend-net
depends_on:
- minio
env_file:
- .env
volumes:
- ${LOCAL_PERSIST_DIRECTORY}:${PERSIST_DIRECTORY}
restart: always
volumes:
minio_data:
networks:
backend-net:
driver: bridge