forked from brianglass/orthocal-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
31 lines (31 loc) · 749 Bytes
/
docker-compose.yaml
File metadata and controls
31 lines (31 loc) · 749 Bytes
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
configs:
newrelic_config:
file: ./newrelic.ini
services:
local: # for local development
build: .
ports:
- "8000:8000"
volumes:
- .:/orthocal:consistent
environment:
- PORT=8000
- ALLOWED_HOSTS=localhost
- UVICORN_RELOAD=true
web: # Use to test as it will be deployed in production
build: .
ports:
- "8000:8000"
cpu_count: 4
environment:
- PORT=8000
- ALLOWED_HOSTS=localhost
- NEW_RELIC_CONFIG_FILE=/orthocal-secrets/newrelic.ini
- NEW_RELIC_ENVIRONMENT=development
- WEB_CONCURRENCY=4
configs:
- source: newrelic_config
target: /orthocal-secrets/newrelic.ini
tests:
build: .
command: ./manage.py test --keepdb