-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
75 lines (70 loc) · 1.67 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
version: "3.4"
services:
demo-django-frontend:
build: .
image: codescope/demo-django:$COMMIT
command: ["scope-run", "gunicorn", "demo.wsgi", "-b", "0.0.0.0:8000"]
environment:
- CI
- SCOPE_APIKEY
- SCOPE_API_ENDPOINT
- SCOPE_SERVICE=frontend
- REDIS_HOST=redis
links:
- redis
demo-django-worker:
build: .
image: codescope/demo-django:$COMMIT
command: ["scope-run", "celery", "-A", "demo", "worker", "-P", "solo", "-l", "debug"]
environment:
- CI
- SCOPE_APIKEY
- SCOPE_API_ENDPOINT
- SCOPE_SERVICE=worker
- REDIS_HOST=redis
links:
- redis
redis:
image: redis
tests-worker:
build: .
image: codescope/demo-django:$COMMIT
command: ["scope-run", "./manage.py", "test", "-p", "tests_worker.py"]
environment:
- CI
- SCOPE_APIKEY
- SCOPE_API_ENDPOINT
- SCOPE_SERVICE=worker
- REDIS_HOST=redis
- JENKINS_URL
- CIRCLECI
- CIRCLE_BUILD_NUM
- CIRCLE_BUILD_URL
- BUILD_ID
- BUILD_NUMBER
- BUILD_URL
links:
- redis
depends_on:
- demo-django-worker
tests-frontend:
build: .
image: codescope/demo-django:$COMMIT
command: ["scope-run", "./manage.py", "test", "-p", "tests_frontend.py"]
environment:
- CI
- SCOPE_APIKEY
- SCOPE_API_ENDPOINT
- SCOPE_SERVICE=frontend
- FRONTEND_HOST=demo-django-frontend
- REDIS_HOST=redis
- CIRCLECI
- CIRCLE_BUILD_NUM
- CIRCLE_BUILD_URL
- JENKINS_URL
- BUILD_ID
- BUILD_NUMBER
- BUILD_URL
links:
- demo-django-frontend
- demo-django-worker