/
docker-compose.cypress.yml
60 lines (54 loc) · 1.23 KB
/
docker-compose.cypress.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
services:
mariadb-test:
build:
context: .
dockerfile: dockerfiles/Dockerfile.mariadb-cypress
environment:
- MYSQL_PASSWORD
- MYSQL_USER
- MYSQL_ROOT_PASSWORD
hostname: kontext-mariadb-1
volumes:
- kontext_testdb:/var/lib/mysql
ports:
- "3306:3306"
networks:
- databases
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--password=$MYSQL_ROOT_PASSWORD"]
interval: 1s
timeout: 10s
retries: 5
kontext:
build:
dockerfile: dockerfiles/Dockerfile.kontext-cypress-jammy
volumes:
- ./scripts/install/conf/docker/config.cypress.xml:/opt/kontext/conf/config.xml
depends_on:
mariadb-test:
condition: service_healthy
networks:
- databases
rq-scheduler:
depends_on:
mariadb-test:
condition: service_healthy
redis:
condition: service_healthy
kontext:
condition: service_started
restart: always
rq-worker:
depends_on:
mariadb-test:
condition: service_healthy
redis:
condition: service_healthy
kontext:
condition: service_started
networks:
- databases
volumes:
kontext_testdb: {}
networks:
databases: {}