-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (109 loc) · 2.52 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
version: '3.6'
networks:
vuttr:
name: vuttr
ipam:
config:
- subnet: 172.21.1.0/24
services:
api:
container_name: api
networks:
vuttr:
ipv4_address: 172.21.1.7
volumes:
- ./:/ws
image: node:8.15.1-alpine
working_dir: /ws/api
entrypoint: /bin/sh -c 'npm install && && npm start; tail -f /ws/docker-compose.yml'
environment:
- HOST=0.0.0.0
- PORT=4000
ports:
- 4000:4000
acceptance:
container_name: acceptance
networks:
vuttr:
ipv4_address: 172.21.1.2
volumes:
- ./:/ws
image: node:8.15.1-alpine
working_dir: /ws/acceptance
entrypoint: /bin/sh -c 'npm install; tail -f /ws/docker-compose.yml'
environment:
- APP_URL=http://172.21.1.3:4200
frontend:
container_name: frontend
networks:
vuttr:
ipv4_address: 172.21.1.3
volumes:
- ./:/ws
image: node:8.16
working_dir: /ws/frontend
environment:
- PORT=4200
- HOST=0.0.0.0
- VUE_APP_API=http://172.21.1.7:4000
ports:
- 4200:4200
- 4300:4300
entrypoint: /bin/sh -c 'npm install && yarn serve; tail -f /ws/docker-compose.yml'
hub:
container_name: hub
image: selenium/hub:2.53.1-beryllium
environment:
- TZ=BRT3BRST,M11.1.6/23:59:59,M2.3.6/23:59:59
ports:
- 4444:4444
networks:
vuttr:
ipv4_address: 172.21.1.4
healthcheck:
test: >-
/bin/bash -c
"echo -e \"GET / HTTP/1.1\n\n\" > /dev/tcp/localhost/4444 || exit 1"
interval: 10s
timeout: 1m30s
retries: 5
firefox:
container_name: firefox
image: selenium/node-firefox:2.53.1-beryllium
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- TZ=BRT3BRST,M11.1.6/23:59:59,M2.3.6/23:59:59
ports:
- 9000
depends_on:
- frontend
networks:
vuttr:
ipv4_address: 172.21.1.5
healthcheck:
test: >-
/bin/bash -c
"echo -e \"GET / HTTP/1.1\n\n\" > /dev/tcp/localhost/5555 || exit 1"
interval: 10s
timeout: 1m30s
retries: 5
chrome:
container_name: chrome
image: selenium/node-chrome:2.53.1-beryllium
ports:
- 9000
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- TZ=BRT3BRST,M11.1.6/23:59:59,M2.3.6/23:59:59
depends_on:
- frontend
networks:
vuttr:
ipv4_address: 172.21.1.6
healthcheck:
test: >-
/bin/bash -c
"echo -e \"GET / HTTP/1.1\n\n\" > /dev/tcp/localhost/5555 || exit 1"
interval: 10s
timeout: 1m30s
retries: 5