-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (46 loc) · 902 Bytes
/
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
---
version: "3.9"
networks:
knowledge-middleware:
driver: bridge
name: knowledge-middleware
data-api:
external: true
services:
km-api:
container_name: api-knowledge-middleware
build:
context: ./
dockerfile: api/Dockerfile
ports:
- "8010:8000"
env_file:
- .env
networks:
- knowledge-middleware
- data-api
depends_on:
- redis
volumes:
- $PWD/api:/service/api
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
container_name: redis-knowledge-middleware
image: redis
ports:
- "6379:6379"
networks:
- knowledge-middleware
rqworker:
container_name: worker-knowledge-middleware
build:
context: ./
dockerfile: worker/Dockerfile
env_file:
- .env
depends_on:
- redis
networks:
- knowledge-middleware
- data-api