-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
125 lines (116 loc) · 2.68 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.7'
services:
apache:
build: .docker/apache
container_name: ${PROJECT_NAME}_apache
ports:
- ${PROJECT_PORT}:80
volumes:
- .:/var/www/app:cached
depends_on:
- php
networks:
- backend
- grid
mysql:
image: mysql:latest
container_name: ${PROJECT_NAME}_mysql
ports:
- ${PROJECT_PORT}:3306
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: EVHEayI6axNl0Z8k
MYSQL_DATABASE: ${PROJECT_NAME}
MYSQL_USER: dev
MYSQL_PASSWORD: dev
volumes:
- ./.docker/data/mysql:/var/lib/mysql
command:
- "--default-authentication-plugin=mysql_native_password"
- "--lower_case_table_names=1"
php:
build:
context: .docker/php
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
container_name: ${PROJECT_NAME}_php
volumes:
- .:/var/www/app:cached
depends_on:
- mysql
networks:
- backend
- grid
selenium-hub:
image: selenium/hub:4.1.4-20220427
container_name: ${PROJECT_NAME}_selenium_hub
ports:
- "4445:4444"
- "4442:4442"
- "4443:4443"
networks:
- backend
- grid
chrome:
image: selenium/node-chrome:4.1.4-20220427
container_name: ${PROJECT_NAME}_chrome
shm_size: "2gb"
ports:
- "4446:5900"
environment:
- SE_EVENT_BUS_HOST=${PROJECT_NAME}_selenium_hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- VNC_NO_PASSWORD=1
depends_on:
- selenium-hub
networks:
- backend
- grid
chrome_video:
image: selenium/video:ffmpeg-4.3.1-20220427
container_name: ${PROJECT_NAME}_video_chrome
volumes:
- ./.docker/test/recording:/videos
depends_on:
- chrome
environment:
- DISPLAY_CONTAINER_NAME=chrome
- FILE_NAME=behat_chrome.mp4
networks:
- backend
- grid
firefox:
image: selenium/node-firefox:4.1.4-20220427
container_name: ${PROJECT_NAME}_firefox
shm_size: "2gb"
ports:
- "4447:5900"
environment:
- SE_EVENT_BUS_HOST=${PROJECT_NAME}_selenium_hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- VNC_NO_PASSWORD=1
depends_on:
- selenium-hub
networks:
- backend
- grid
firefox_video:
container_name: ${PROJECT_NAME}_video_firefox
image: selenium/video:ffmpeg-4.3.1-20220427
volumes:
- ./.docker/test/recording:/videos
depends_on:
- firefox
environment:
- DISPLAY_CONTAINER_NAME=firefox
- FILE_NAME=behat_firefox.mp4
networks:
- backend
- grid
networks:
backend:
grid: