-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
46 lines (43 loc) · 1.16 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
version: '3'
services:
gordon:
build: .
user: twilio
volumes:
- ./gordon:/home/twilio/app/gordon/gordon
- ./bin:/home/twilio/app/gordon/bin
- ./local_dev_secrets:/home/twilio/app/gordon/secrets
environment:
- GORDON_RUN_MODE=api
env_file:
- ./configuration/environment/localdev.env
command: flask run -h 0.0.0.0 -p 9001
ports:
- "9001:9001"
gordon-worker:
build: .
user: twilio
volumes:
- ./gordon:/home/twilio/app/gordon/gordon
- ./bin:/home/twilio/app/gordon/bin
- ./local_dev_secrets:/home/twilio/app/gordon/secrets
environment:
- GORDON_RUN_MODE=worker
env_file:
- ./configuration/environment/localdev.env
command: celery -A gordon.worker.celery_initialization.celery worker --loglevel=INFO
depends_on:
- redis
redis:
image: "redis:latest"
test:
build:
context: ./
dockerfile: Dockerfile.test
user: twilio
volumes:
- ./gordon:/home/twilio/app/gordon/gordon
- ./tests:/home/twilio/app/gordon/tests
env_file:
- configuration/environment/test.env
command: pytest -v -s