forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-base.yml
52 lines (48 loc) · 1.61 KB
/
docker-compose-base.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
frontend-watcher:
build: .
# DEV: Uncomment image & comment out dockerfile to skip building from scratch
# image: lmorchard/testpilot_frontend_watcher:latest
dockerfile: Dockerfile-frontend-build
ports:
- "9966:9966"
- "35729:35729"
volumes:
- .:/app
environment:
- NODE_ENV=development
command:
./bin/run-frontend-watch.sh
server:
build: .
# DEV: Uncomment image & comment out dockerfile to skip building from scratch
# image: mozilla/testpilot:latest
dockerfile: Dockerfile
ports:
- "8000:8000"
# HACK: escalate to root user in dev, because we need to be able to write
# file uploads to /app/media. Production will use Amazon S3
user: root
volumes:
- .:/app
command:
./bin/run-dev.sh
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- DATABASE_URL=postgres://postgres@db/postgres
- DEBUG=True
- STATICINTEGRITY_CACHE_TTL=1
- INITIAL_ADMIN_USERNAME=admin
- INITIAL_ADMIN_PASSWORD=admin
- ALLOWED_HOSTS=testpilot.dev
- SECRET_KEY=59114b6a-2858-4caf-8878-482a24ee9542
- FXA_ACCESS_TOKEN_URL=https://oauth-stable.dev.lcip.org/v1/token
- FXA_AUTHORIZE_URL=https://oauth-stable.dev.lcip.org/v1/authorization
- FXA_PROFILE_URL=https://stable.dev.lcip.org/profile/v1/profile
- FXA_CLIENT_ID=4636d485f6f0c761
- FXA_SECRET_KEY=c19cca573b94fc195377c577d29f460ab638bec9c8e2b42b1296bd6b22319778
- DATADOG_API_KEY=4f3b967bbf13c7769ac4fa89efda0fae
- DATADOG_APP_KEY=ddd45a7b3a3cb90ff1baf20ae8cfab04d1937038
- DJANGO_LOG_LEVEL=DEBUG
- DJANGO_LOG_FORMAT=json