-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
46 lines (42 loc) · 1 KB
/
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
services:
redis:
build:
context: .
dockerfile: ./docker/Dockerfile-broker
ports:
- 6379:6379
container_name: ubi-manifest-redis
worker:
build:
context: .
dockerfile: ./docker/Dockerfile-workers
environment:
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
depends_on:
- redis
beat:
build:
context: .
dockerfile: ./docker/Dockerfile-beat
environment:
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
depends_on:
- redis
- worker
app:
build:
context: .
dockerfile: ./docker/Dockerfile-app
environment:
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
command:
- /bin/sh
- -c
- >-
uvicorn ubi_manifest.app.factory:create_app --factory --reload --host 0.0.0.0 --port 8000 --log-config /src/conf/logging.ini
ports:
- 8000:8000
depends_on:
- redis
- worker
# TODO make the 'app' and 'workers' automatically reload on code change