-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.01 KB
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
services:
mysql:
image: mysql:8.4
container_name: tashil_mysql
ports:
- "13306:3306"
environment:
MYSQL_ROOT_PASSWORD: tashil
MYSQL_DATABASE: tashil_test
volumes:
- tashil_mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-ptashil"]
interval: 5s
timeout: 5s
retries: 10
pgsql:
image: postgres:16
container_name: tashil_pgsql
ports:
- "15432:5432"
environment:
POSTGRES_USER: tashil
POSTGRES_PASSWORD: tashil
POSTGRES_DB: tashil_test
volumes:
- tashil_pgsql_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tashil"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7
container_name: tashil_redis
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
tashil_mysql_data:
tashil_pgsql_data: