This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-latest.test.yml
71 lines (66 loc) · 1.81 KB
/
docker-compose-latest.test.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
version: "3.3"
services:
sut:
container_name: test-bench
image: ${IMAGE_TAG}
environment:
TEST_ADDR: ${TEST_ADDR}
volumes:
- ./test.sh:/test.sh:ro
entrypoint: ["/test.sh"]
depends_on:
easyappointments:
condition: service_healthy
mariadb:
condition: service_healthy
networks:
test_deployer_container:
easyappointments:
container_name: easyappointments
image: ${IMAGE_TAG}
environment:
BASE_URL: http://easyappointments
DB_HOST: mariadb
DB_NAME: public
DB_USERNAME: public
DB_PASSWORD: public
depends_on:
mariadb:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"curl",
"-s",
"--fail",
"http://127.0.0.1/.nginx/status",
]
start_period: 5s
interval: 15s
timeout: 1s
networks:
test_deployer_container:
aliases:
- mariadb.local
mariadb:
image: mariadb:10.9
restart: on-failure:2
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-upublic", "-ppublic"]
start_period: 10s
interval: 15s
timeout: 1s
retries: 3
networks:
test_deployer_container:
aliases:
- mariadb.local
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: public
MYSQL_USER: public
MYSQL_PASSWORD: public
networks:
test_deployer_container:
driver: bridge