-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.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
47
48
49
50
services:
redis:
image: bitnami/redis:6.2
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD:-password}
restart: always
volumes:
- "redis-data:/data"
worker:
build:
context: ./
dockerfile: Dockerfile
environment:
- REDIS_URL=redis://:${REDIS_PASSWORD:-password}@redis:6379/
- SECURITY_TRAILS_API_KEY=${SECURITY_TRAILS_API_KEY}
command: arq app.arq.worker.ArqWorkerSettings
restart: always
depends_on:
- redis
certstream:
build:
context: ./
dockerfile: Dockerfile
environment:
- REDIS_URL=redis://:${REDIS_PASSWORD:-password}@redis:6379/
command: python -m app.scripts.certstream
restart: always
depends_on:
- redis
backend:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- REDIS_URL=redis://:${REDIS_PASSWORD:-password}@redis:6379/
- PORT=${PORT:-8000}
command: uvicorn --host 0.0.0.0 --port ${PORT:-8000} app.main:app
restart: always
depends_on:
- redis
volumes:
redis-data: