forked from mozilla/experimenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.integration-test.yml
104 lines (93 loc) · 1.99 KB
/
docker-compose.integration-test.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3"
services:
services:
app:
image: app:build
env_file: .env.integration
stdin_open: true
tty: true
links:
- db
- redis
volumes:
- static_volume:/app/experimenter/served/
- node_modules_volume:/app/node_modules/
command: bash -c "/app/bin/wait-for-it.sh db:5432 -- python /app/manage.py collectstatic --noinput;python /app/manage.py runserver 0:7001"
networks:
- private_nw
yarn:
image: app:build
env_file: .env.integration
volumes:
- static_volume:/app/experimenter/served/
- node_modules_volume:/app/node_modules/
command: bash -c "yarn run watch"
networks:
- private_nw
ports:
- "33123:33123"
worker:
image: app:build
env_file: .env.integration
links:
- db
- redis
command: bash -c "/app/bin/wait-for-it.sh db:5432 -- celery -A experimenter worker -l debug"
networks:
- private_nw
beat:
image: app:build
env_file: .env.integration
links:
- db
- redis
command: bash -c "/app/bin/wait-for-it.sh db:5432 -- celery -A experimenter beat --pidfile /celerybeat.pid -s /celerybeat-schedule -l debug"
networks:
- private_nw
nginx:
build: ./nginx
env_file: .env.integration
links:
- app
ports:
- "443:443"
networks:
- private_nw
- public_nw
depends_on:
- app
volumes:
- static_volume:/app/experimenter/served/
db:
restart: always
image: postgres:9.6
volumes:
- db_volume:/var/lib/postgresql
networks:
- private_nw
redis:
image: redis
networks:
- private_nw
firefox:
image: b4handjr/selenium-firefox:python3-latest
volumes:
- .:/code
links:
- nginx
expose:
- "4444"
ports:
- "5900:5900"
shm_size: 2g
networks:
- private_nw
- public_nw
volumes:
db_volume:
static_volume:
node_modules_volume:
networks:
private_nw:
internal: true
public_nw: