forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-selenium.yml
55 lines (55 loc) · 1.28 KB
/
docker-compose-selenium.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
version: '2.4'
# https://github.com/docker/cli/issues/1293
services:
db:
image: library/postgres:12.2
environment:
POSTGRES_USER: "oioioi"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "oioioi"
stop_grace_period: 1m
web:
image: sio2project/oioioi-selenium
command: ["/sio2/oioioi/selenium_init.sh"]
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "web:127.0.0.1"
ports:
- "8001:8000"
environment:
DJANGO_SETTINGS_MODULE: "selenium_settings"
stop_grace_period: 3m
depends_on:
- db
- broker
worker:
image: sio2project/oioioi-selenium
command: ["/sio2/oioioi/worker_init.sh"]
cap_add:
- ALL
environment:
DJANGO_SETTINGS_MODULE: "selenium_settings"
stop_grace_period: 1m
depends_on:
- db
broker:
image: library/rabbitmq:3.8
environment:
RABBITMQ_DEFAULT_USER: oioioi
RABBITMQ_DEFAULT_PASS: oioioi
stop_grace_period: 1m
selenium-hub:
image: selenium/hub:3.141.59-20200409
ports:
- "4444:4444"
selenium-firefox:
image: selenium/node-firefox:3.141.59-20200409
environment:
HUB_HOST: "selenium-hub"
HUB_PORT: "4444"
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub