-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-test.yaml
49 lines (48 loc) · 1.25 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
version: '3.8'
services:
webapp:
tty: true
image: container-discovery-test:latest
build:
context: .
dockerfile: docker/bookworm/Dockerfile
target: test
args:
- GIT_COMMIT
environment:
- FEATURE
- USE_TEST_CONTAINER=1
- USE_RSPEC
depends_on:
chrome:
condition: service_healthy
# Make this dependency optional so we can use it on cucumber test but not on rspec
# https://github.com/compose-spec/compose-spec/issues/274
required: false
ports:
- 3010:3010
volumes:
- ${RAILS_ENV_FILE}:/custom_mnt/.env:ro
chrome:
# seleniarm/standalone-chromium / selenium/standalone-chrome
image: ${SELENIUM_IMAGE}
shm_size: '512mb'
ports:
- 4444:4444
- 7900:7900
- 5900:5900
environment:
- SE_NODE_SESSION_TIMEOUT=11000
- START_XVFB=false
- SE_START_VNC=false
healthcheck:
test: [ "CMD", "curl", "-fL", "http://localhost:4444" ]
interval: 5s
timeout: 5s
retries: 5
start_period: 1s
# Make this service optional so we can use it on cucumber test but not on rspec
# https://github.com/compose-spec/compose-spec/issues/274
profiles:
- cucumber
- rspec