Skip to content

Commit 5e542f7

Browse files
committed
Feat : local 세팅 파일 추가
1 parent 94b12d4 commit 5e542f7

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

‎docker-compose.local.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
services:
2+
mysql:
3+
image: mysql:8.0
4+
container_name: local-mysql
5+
restart: unless-stopped
6+
ports:
7+
- "3306:3306"
8+
environment:
9+
MYSQL_ROOT_PASSWORD: 1234
10+
MYSQL_DATABASE: tinybite
11+
MYSQL_USER: tinybite
12+
MYSQL_PASSWORD: 1234
13+
volumes:
14+
- mysql_data:/var/lib/mysql
15+
- ./init-sql:/docker-entrypoint-initdb.d
16+
command:
17+
- --character-set-server=utf8mb4
18+
- --collation-server=utf8mb4_unicode_ci
19+
- --default-time-zone=Asia/Seoul
20+
healthcheck:
21+
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot1234"]
22+
interval: 10s
23+
timeout: 5s
24+
retries: 5
25+
26+
redis:
27+
image: redis:7.2-alpine
28+
container_name: local-redis
29+
restart: unless-stopped
30+
ports:
31+
- "6379:6379"
32+
command: redis-server --requirepass redis1234 --appendonly yes
33+
volumes:
34+
- redis_data:/data
35+
healthcheck:
36+
test: ["CMD", "redis-cli", "-a", "redis1234", "ping"]
37+
interval: 10s
38+
timeout: 5s
39+
retries: 5
40+
41+
volumes:
42+
mysql_data:
43+
redis_data:

0 commit comments

Comments
 (0)