-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1007 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1007 Bytes
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
services:
app:
build: .
image: agigora/dogcat
container_name: dogcat-app
ports:
- "8081:8080"
env_file:
- src/main/resources/.env
depends_on:
- mysql
- redis
restart: unless-stopped
mysql:
image: mysql:8.0
container_name: dogcat-mysql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
env_file:
- src/main/resources/.env
ports:
- "3307:3306" # 로컬에서 직접 접속할 때만 필요
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stopped
redis:
image: redis:7
container_name: dogcat-redis
env_file:
- src/main/resources/.env
command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
ports:
- "6380:6379" # 로컬 테스트할 때만 필요
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
mysql_data:
redis_data: