-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.checks.yml
52 lines (48 loc) · 1.17 KB
/
docker-compose.checks.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
services:
test:
image: complete-app:ci
command: bin/rspec
ports:
- "3000:3000"
depends_on:
test-db-health:
condition: service_healthy
test-redis:
condition: service_started
env_file:
- .env.test
environment:
DATABASE_URL: sqlserver://sa:strongPassword&@test-db:1433/sip_test
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
SECRET_KEY_BASE: secret
CI: "true"
USER_ENV: test
REDIS_URL: redis://test-redis:6379
networks:
- test-ci
test-db:
image: mcr.microsoft.com/azure-sql-edge:latest
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: strongPassword&
networks:
- test-ci
test-db-health:
image: mcr.microsoft.com/mssql-tools:latest
command: /bin/bash -c "touch /var/log/sqlcmd.log && tail -f /var/log/sqlcmd.log"
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S test-db -U sa -P 'strongPassword&' -o /var/log/sqlcmd.log
interval: "2s"
retries: 10
depends_on:
- test-db
networks:
- test-ci
test-redis:
image: redis:6
ports:
- 6379:6379
networks:
- test-ci
networks:
test-ci: