forked from scality/runner-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
71 lines (70 loc) · 1.49 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
---
services:
redis:
profiles:
- tests
- dev
image: redis/redis-stack:7.2.0-v9
ports:
- 6379:6379
- 8001:8001
volumes:
- redis_data:/data
runner-manager:
profiles:
- dev
depends_on:
- redis
build: .
user: root
ports:
- 8000:8000
environment: &env
GITHUB_TOKEN: ${RUNNER_MANAGER_TOKEN}
REDIS_OM_URL: redis://redis:6379
CONFIG_FILE: /app/config.yaml
command: uvicorn runner_manager.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./runner_manager:/app/runner_manager
- ./config.yaml:/app/config.yaml
- /var/run/docker.sock:/var/run/docker.sock
webhook:
profiles:
- dev
build: tests/images/webhook
environment:
URL: http://runner-manager:8000/webhook
REPO: ${REPO}
GITHUB_TOKEN: ${RUNNER_MANAGER_TOKEN}
worker:
profiles:
- dev
depends_on:
- redis
build: .
command: rq worker --with-scheduler -c runner_manager.jobs.settings
# Required when connecting to docker daemon from inside the container
user: root
volumes:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
environment: *env
scheduler:
profiles:
- dev
depends_on:
- redis
build: .
command: scheduler
volumes:
- .:/app
environment: *env
github-mock:
profiles:
- tests
build: tests/images/github-mock
ports:
- 4010:4010
volumes:
redis_data:
driver: local