-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.build.yml
executable file
·84 lines (82 loc) · 1.74 KB
/
docker-compose.build.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
version: '3.7'
services:
selenium_chrome:
image: selenium/node-chrome:3.141.59-vanadium
container_name: dockerkvs_selenium_chrome
depends_on:
- selenium_hub
environment:
- HUB_HOST=selenium_hub
- HUB_PORT=4444
selenium_hub:
image: selenium/hub:3.141.59-vanadium
container_name: dockerkvs_selenium_hub
ports:
- 4444:4444
webtest:
build:
context: ./webtest
dockerfile: Dockerfile
image: dockerkvs_webtest
container_name: dockerkvs_webtest
depends_on:
- web
- selenium_hub
tty: true
volumes:
- dockerkvs_selenium_volume:/images/
environment:
WEB_HOST: web
WEB_PORT: 80
SELENIUM_HUB_HOST: selenium_hub
SELENIUM_HUB_PORT: 4444
apptest:
build:
context: ./apptest
dockerfile: Dockerfile
image: dockerkvs_apptest
container_name: dockerkvs_apptest
depends_on:
- app
tty: true
environment:
APP_HOST: app
APP_PORT: 80
web:
build:
context: ./web
dockerfile: Dockerfile
image: dockerkvs_web
container_name: dockerkvs_web
restart: "no"
depends_on:
- app
ports:
- 80:80
environment:
DEBUG: "false"
APP_SERVER: http://app:80
app:
build:
context: ./app
dockerfile: Dockerfile
image: dockerkvs_app
container_name: dockerkvs_app
restart: "no"
depends_on:
- db
environment:
REDIS_HOST: db
REDIS_PORT: 6379
REDIS_DB: 0
db:
image: redis:5.0.6-alpine3.10
restart: "no"
container_name: dockerkvs_db
volumes:
- dockerkvs_redis_volume:/data
volumes:
dockerkvs_redis_volume:
driver: local
dockerkvs_selenium_volume:
driver: local