-
Notifications
You must be signed in to change notification settings - Fork 20
/
compose.test.yml
51 lines (50 loc) · 1.14 KB
/
compose.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
name: pilos-ci
services:
app:
image: "${CONTAINER_IMAGE:-pilos/pilos:latest}"
ports:
- "9080:80"
sysctls:
net.core.somaxconn: 65536
net.ipv4.ip_local_port_range: "2000 65535"
net.ipv4.tcp_tw_reuse: 1
net.ipv4.tcp_fin_timeout: 30
healthcheck:
test: curl --fail http://localhost/ping || exit 1
interval: 10s
retries: 6
timeout: 5s
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
db:
image: "mariadb:11"
environment:
MYSQL_DATABASE: "app"
MYSQL_USER: "user"
MYSQL_PASSWORD: "password"
MYSQL_RANDOM_ROOT_PASSWORD: "true"
volumes:
- mariadb:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
retries: 12
timeout: 5s
redis:
image: redis:7.2-alpine3.18
restart: unless-stopped
volumes:
- redis:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
retries: 12
timeout: 5s
volumes:
mariadb:
driver: local
redis:
driver: local