yeg
2026-09-29 160e97a034e1b9fad4052d449da0eeecc9540e97
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
services:
  mysql:
    image: mysql:8.4
    container_name: talent-card-mysql
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: talent_card
      MYSQL_USER: talent_card
      MYSQL_PASSWORD: talent_card
      TZ: Asia/Shanghai
    ports:
      - "3307:3306"
    volumes:
      - mysql-data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-utalent_card", "-ptalent_card"]
      interval: 10s
      timeout: 5s
      retries: 10
 
  redis:
    image: redis:7.4
    container_name: talent-card-redis
    restart: unless-stopped
    ports:
      - "6379:6379"
    volumes:
      - redis-data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 10
 
volumes:
  mysql-data:
  redis-data: