-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-e2e.yml
108 lines (100 loc) · 2.21 KB
/
docker-compose-e2e.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
version: '3.7'
services:
e2e-tests:
build:
context: .
dockerfile: Dockerfile.e2e
container_name: montepouli-e2e-tests
volumes:
- ./apps/client-e2e/reports/images:/root/target/screenshots
networks:
- e2e
depends_on:
- server-e2e
- mongodb-e2e
- client-e2e
- selenium-hub
- chrome
command: sh -c 'sleep 10 && npm run e2e:protractor'
webserver-e2e:
image: nginx:mainline-alpine
container_name: montepouli-webserver-e2e
ports:
- '443:443'
volumes:
- ./apps/client-e2e/nginx-conf:/etc/nginx/conf.d
depends_on:
- server-e2e
- mongodb-e2e
- client-e2e
networks:
- e2e
client-e2e:
image: ${IMAGE_REPOSITORY}/${CLIENT_BASE_IMAGE_NAME}:${CLIENT_BASE_IMAGE_TAG}
container_name: montepouli-client-e2e
ports:
- '80:80'
networks:
- e2e
depends_on:
- server-e2e
- mongodb-e2e
server-e2e:
image: ${IMAGE_REPOSITORY}/${SERVER_IMAGE_NAME}:${SERVER_IMAGE_TAG}
container_name: montepouli-server-e2e
environment:
- SERVER_SECRET=secret01
- ENV=prod
- MONGO_DNS_NAME=mongodb-e2e
- COOKIE_SECRET=secret
- CORS_ORIGIN=https://www.webserver-e2e
- DOMAIN=webserver-e2e
ports:
- '3000'
volumes:
- ./server/src:/usr/src/app/src
networks:
- e2e
depends_on:
- mongodb-e2e
command: sh -c 'sleep 3 && node dist/main.js'
mongodb-e2e:
container_name: montepouli-mongodb-e2e
image: mongo:4.1
ports:
- '27017'
- '28017'
restart: always
networks:
- e2e
selenium-hub:
image: selenium/hub:3.141.59
container_name: selenium-hub
ports:
- '4444'
networks:
- e2e
chrome:
image: selenium/node-chrome:3.141.59
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
networks:
- e2e
# firefox:
# image: selenium/node-firefox:3.141.59
# volumes:
# - /dev/shm:/dev/shm
# depends_on:
# - selenium-hub
# environment:
# - HUB_HOST=selenium-hub
# - HUB_PORT=4444
# networks:
# - e2e
networks:
e2e: