-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
64 lines (59 loc) · 1.2 KB
/
docker-compose-dev.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
app:
image: redcap-support-core/redcap-support-api:dev
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "uvicorn src.rss.server_main:app --host 0.0.0.0 --port 8000 --reload"
env_file:
- env/.env.dev
environment:
DB_HOST: db
DB_PORT: 5432
REDIS_IP: queue
REDIS_PORT: 6379
ports:
- "8002:8000"
volumes:
- .:/code
depends_on:
- db
- queue
worker:
image: redcap-support-api-worker/redcap-support-api-worker:dev
build:
context: .
dockerfile: Dockerfile.worker.dev
command: bash -c "arq rss.worker.WorkerSettings --watch ./rss"
env_file:
- env/.env.dev
environment:
DB_HOST: db
DB_PORT: 5432
REDIS_IP: queue
REDIS_PORT: 6379
volumes:
- .:/code
depends_on:
- db
- queue
db:
image: postgres:15
env_file:
- env/.env.dev
ports:
- "5434:5432"
volumes:
- rss-data-dev:/var/lib/postgresql/data
queue:
image: redis:7.2.3
env_file:
- env/.env.dev
ports:
- "6381:6379"
volumes:
- rss-queue-dev:/data
volumes:
rss-data-dev:
rss-queue-dev: