-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.38 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
49
50
51
52
53
54
55
56
57
58
59
60
services:
mysql:
image: mysql:8.4
container_name: windwalker_mysql
environment:
MYSQL_ROOT_PASSWORD: ut1234
MYSQL_DATABASE: windwalker_test
ports:
- "${MYSQL_PORT:-3306}:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/windwalker.cnf:ro
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-ppassword"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
postgresql:
image: postgres:17-alpine
container_name: windwalker_postgresql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ut1234
POSTGRES_DB: windwalker_test
ports:
- "${PGSQL_PORT:-5432}:5432"
volumes:
- postgresql_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
redis:
image: redis:7-alpine
container_name: windwalker_redis
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
memcached:
image: memcached:1-alpine
container_name: windwalker_memcached
ports:
- "${MEMCACHED_PORT:-11211}:11211"
volumes:
mysql_data:
postgresql_data:
redis_data: