-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (80 loc) · 2.46 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.7"
services:
gunicorn:
image: codefroghq/codefrog:latest
command: ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--threads", "8", "wsgi:application"]
restart: unless-stopped
build:
context: .
ports:
- "8000:8000"
depends_on:
- redis
links:
- redis
env_file:
- ./.env
volumes:
- project_source_code:/project_source_code
labels:
com.datadoghq.ad.logs: '[{ "source": "gunicorn", "service": "codefrog"}]'
celery_worker:
image: codefroghq/codefrog:latest
command: ["celery", "worker", "--app", "core", "--queues", "low,medium,high,celery", "--loglevel", "INFO", "--logfile", "/dev/stdout", "--pidfile", "/tmp/celery-worker.pid", "-Ofair"]
restart: unless-stopped
build:
context: .
shm_size: '2gb'
depends_on:
- redis
links:
- redis
environment:
- C_FORCE_ROOT=true
env_file:
- ./.env
volumes:
- project_source_code:/project_source_code
labels:
com.datadoghq.ad.logs: '[{"source": "celery", "service": "codefrog"}]'
celery_beat:
image: codefroghq/codefrog:latest
command: ["celery", "beat", "--app", "core", "--loglevel", "INFO", "--logfile", "/dev/stdout", "--pidfile", "/tmp/celery-beat.pid", "--schedule", "/tmp/celery-beat-schedule.db"]
restart: unless-stopped
build:
context: .
depends_on:
- redis
links:
- redis
environment:
- C_FORCE_ROOT=true
env_file:
- ./.env
volumes:
- project_source_code:/project_source_code
labels:
com.datadoghq.ad.logs: '[{"source": "celery-beat", "service": "codefrog"}]'
celery_flower:
image: codefroghq/codefrog:latest
command: ["celery", "flower", "--app", "core", "--port=5555"]
restart: unless-stopped
build:
context: .
ports:
- "5555:5555"
depends_on:
- redis
links:
- redis
env_file:
- ./.env
redis:
image: redis:5-buster
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
redis_data:
project_source_code: