-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
85 lines (84 loc) · 1.98 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
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
version: "3"
services:
api:
build:
context: ./
dockerfile: ./api/Dockerfile
ports:
- "8080:80"
depends_on:
- broker
- db
links:
- broker
- db
environment:
CATALOG_PATH: /code/app/resources/catalogs/catalog.yaml
POSTGRES_DB: dds
POSTGRES_USER: dds
POSTGRES_PASSWORD: dds
POSTGRES_HOST: db
POSTGRES_PORT: 5432
volumes:
- downloads:/downloads:ro
command: ["./wait-for-it.sh", "broker:5672", "--", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
executor:
build:
context: ./
dockerfile: ./executor/Dockerfile
depends_on:
- broker
- db
links:
- broker
- db
ports:
- 8787:8787
environment:
EXECUTOR_TYPES: query,info,estimate
CATALOG_PATH: /code/app/resources/catalogs/catalog.yaml
POSTGRES_DB: dds
POSTGRES_USER: dds
POSTGRES_PASSWORD: dds
POSTGRES_HOST: db
POSTGRES_PORT: 5432
volumes:
- downloads:/downloads:rw
command: ["./wait-for-it.sh", "broker:5672", "--", "python", "./app/main.py"]
broker:
image: rabbitmq:3
db:
image: postgres:14.1
restart: always
volumes:
- ./db/scripts:/docker-entrypoint-initdb.d
ports:
- 5432:5432
environment:
POSTGRES_DB: dds
POSTGRES_USER: dds
POSTGRES_PASSWORD: dds
POSTGRES_HOST: db
POSTGRES_PORT: 5432
web:
build:
context: ./
dockerfile: ./web/Dockerfile
ports:
- "8080:80"
depends_on:
- db
links:
- db
environment:
CATALOG_PATH: /code/app/resources/catalogs/catalog.yaml
POSTGRES_DB: dds
POSTGRES_USER: dds
POSTGRES_PASSWORD: dds
POSTGRES_HOST: db
POSTGRES_PORT: 5432
volumes:
- downloads:/downloads:ro
command: ["./wait-for-it.sh", "broker:5672", "--", "uvicorn", "web.main:app", "--host", "0.0.0.0", "--port", "80"]
volumes:
downloads: