forked from mozilla/experimenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-full.yml
54 lines (49 loc) · 1.28 KB
/
docker-compose-full.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
version: "3"
services:
app:
links:
- db
- redis
- normandy
worker:
links:
- db
- redis
- normandy
delivery-console:
build:
context: ./delivery-console
dockerfile: $PWD/delivery-console/Dockerfile
command: bash -c "REACT_APP_EXPERIMENTER_API_ROOT_URL=https://localhost/api/ REACT_APP_NORMANDY_ADMIN_API_ROOT_URL=https://localhost:8000/api/ yarn start"
links:
- normandy
ports:
- "3000:3000"
networks:
- private_nw
- public_nw
normandy:
build:
context: ./normandy
dockerfile: $PWD/normandy/Dockerfile.development
command: bash -c "/app/bin/wait-for-it.sh normandy_db:5431; ./bin/download_geolite2.sh; python manage.py migrate; python manage.py update_actions; python manage.py initial_data; ./bin/runsslserver.sh 0.0.0.0:8000"
links:
- normandy_db
environment:
- DATABASE_URL=postgres://postgres:postgres@normandy_db/normandy
- DJANGO_ALLOWED_HOSTS=normandy,localhost
ports:
- "8000:8000"
networks:
- private_nw
- public_nw
normandy_db:
restart: always
image: postgres:9.6.17
ports:
- "5431:5432"
networks:
- private_nw
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: normandy