forked from markstory/lint-review
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (66 loc) · 1.36 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
---
version: '3'
services:
broker:
image: rabbitmq:3-management-alpine
ports:
- "15672:15672"
networks:
- back-tier
web:
image: markstory/lint-review
command:
- gunicorn
- -c
- /code/settings.py
- lintreview.web:app
healthcheck:
test: ["CMD", "/code/docker_healthcheck.sh", "web"]
interval: 10s
timeout: 10s
retries: 3
environment: &lintreview_env
LINTREVIEW_GUNICORN_BIND: '0.0.0.0:5000'
LINTREVIEW_GUNICORN_LOG_ACCESS: '-'
LINTREVIEW_GUNICORN_LOG_ERROR: '-'
ports:
- "5000:5000"
links:
- broker
networks:
- front-tier
- back-tier
depends_on:
- broker
- worker
worker:
image: markstory/lint-review
command:
- celery
- -A
- lintreview.tasks
- worker
- -l
- info
- --concurrency
- '1'
healthcheck:
test: ["CMD", "/code/docker_healthcheck.sh", "worker"]
interval: 10s
timeout: 10s
retries: 3
environment:
<<: *lintreview_env
C_FORCE_ROOT: "true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "${LINTREVIEW_WORKSPACE:-/tmp/workspace}:${LINTREVIEW_WORKSPACE:-/tmp/workspace}"
links:
- broker
networks:
- back-tier
depends_on:
- broker
networks:
front-tier:
back-tier: