-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.test.yaml
89 lines (82 loc) · 1.73 KB
/
docker-compose.test.yaml
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
version: '3.0'
services:
semanticbus:
build:
context: .
dockerfile: ./main/Dockerfile
container_name: semanticbus
image: debian/latest
environment:
- APP_PORT=80
- NODE_ENV=development_docker
- CONFIG_URL=https://data-players.github.io/StrongBox/public/test-docker.json
volumes:
- ./config.local.json:/data/main/config.json
networks:
- back
ports:
- "80:80"
expose:
- "80"
links:
- mongodb
- rabbitmq
depends_on:
- mongodb
- rabbitmq
command: ["/data/scripts/wait-for-it.sh", "rabbitmq:5672", "-t", "25", "--", "npm", "run", "start"]
rabbitmq:
image: semanticbus/rabbitmq-stomp
container_name: rabbitmq
ports:
- 5672:5672
- 15674:15674
- 15672:15672
networks:
- back
mongodb:
image: mongo:4.0.6
networks:
- back
ports:
- "27017:27017"
expose:
- "27017"
volumes:
- data:/data/db
command: --smallfiles
e2e:
container_name: e2e
tty: true
depends_on:
- seleniume2e
- semanticbus
image: codeception/codeceptjs
build:
context: ./tests/e2e
environment:
# configure selenium host
- SELENIUM_HOST=seleniume2e
- SELENIUM_PORT=4444
- APP_URL=http://semanticbus
# configure app to test
volumes:
- ./tests/e2e:/tests:ro
- ./tests/logs:/tmp/output:rw
networks:
- back
- selenium-grid
seleniume2e:
container_name: seleniume2e
image: selenium/standalone-chrome
ports:
- '4444:4444'
- '5900:5900'
networks:
- back
- selenium-grid
volumes:
data:
networks:
back:
selenium-grid: