-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.87 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.9'
services:
mysql:
image: mysql:8.0.33
container_name: agenticcp-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: agenticcp
MYSQL_USER: agenticcp
MYSQL_PASSWORD: agenticcppassword
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./docker/mysql/init:/docker-entrypoint-initdb.d
networks:
- agenticcp-network
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
app:
build:
context: .
dockerfile: Dockerfile
container_name: agenticcp-app
restart: unless-stopped
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: docker
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/agenticcp?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: agenticcp
SPRING_DATASOURCE_PASSWORD: agenticcppassword
depends_on:
mysql:
condition: service_healthy
networks:
- agenticcp-network
volumes:
- ./logs:/app/logs
# 개발용: 소스코드 실시간 반영 (선택사항)
# - ./src:/app/src
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2
container_name: agenticcp-phpmyadmin
restart: unless-stopped
ports:
- "8081:80"
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: agenticcp
PMA_PASSWORD: agenticcppassword
depends_on:
mysql:
condition: service_healthy
networks:
- agenticcp-network
volumes:
mysql_data:
networks:
agenticcp-network:
driver: bridge