-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdocker-compose.yml
84 lines (77 loc) · 1.95 KB
/
docker-compose.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
networks:
behaving:
name: behaving
services:
web:
image: nginx:latest
container_name: web
networks:
- behaving
ports:
- 8080:80
- 8081:443
volumes:
- ./tests/www:/usr/share/nginx/html
- ./config/nginx.conf:/etc/nginx/templates/default.conf.template
- ./config/ssl/web.pem:/etc/nginx/cert/web.pem
- ./config/ssl/web-key.pem:/etc/nginx/cert/web-key.pem
behaving:
build:
context: .
dockerfile: docker/Dockerfile.dev
image: behaving.dev
networks:
- behaving
user: behaving
container_name: behaving
stdin_open: true
tty: true
depends_on:
- selenoid
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./var:/app/var
- ./reports:/app/reports
#keep .config/selenoid/browers.json.template in sync
firefox:
image: selenoid/firefox:latest
entrypoint: echo "Only here to make sure the image is available to selenoid"
#keep .config/selenoid/browers.json.template in sync
chrome:
image: selenoid/chrome:latest
entrypoint: echo "Only here to make sure the image is available to selenoid"
selenoid:
container_name: selenoid
networks:
- behaving
build:
args:
- DOWNLOAD_VOLUME=$PWD/var/downloads
context: config/selenoid
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./var/video:/opt/selenoid/video"
- "./var/log:/opt/selenoid/logs"
environment:
- OVERRIDE_VIDEO_OUTPUT_DIR=./var/video
command:
[
"-conf",
"/etc/selenoid/browsers.json",
"-video-output-dir",
"/opt/selenoid/video",
"-log-output-dir",
"/opt/selenoid/logs",
"-container-network",
"behaving"
]
ports:
- "4444:4444"
selenoid-ui:
image: "aerokube/selenoid-ui:latest"
networks:
- behaving
ports:
- "8082:8080"
command: [ "--selenoid-uri", "http://selenoid:4444" ]