-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
136 lines (129 loc) · 3.08 KB
/
docker-compose.dev.yml
File metadata and controls
136 lines (129 loc) · 3.08 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
services:
# Blue 환경 (Dev)
app-blue:
image: ${DOCKERHUB_USERNAME}/kiero:${BLUE_TAG:-latest}
container_name: kiero-dev-app-blue
ports:
- "8080:8080"
env_file:
- .env.dev
environment:
- SPRING_PROFILES_ACTIVE=dev
- TZ=Asia/Seoul
- JAVA_OPTS=-Xms512m -Xmx1024m -XX:+UseG1GC -XX:MaxGCPauseMillis=200
networks:
- app-network
restart: always
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s
# Green 환경 (Dev)
app-green:
image: ${DOCKERHUB_USERNAME}/kiero:${GREEN_TAG:-latest}
container_name: kiero-dev-app-green
ports:
- "8081:8080"
env_file:
- .env.dev
environment:
- SPRING_PROFILES_ACTIVE=dev
- TZ=Asia/Seoul
- JAVA_OPTS=-Xms512m -Xmx1024m -XX:+UseG1GC -XX:MaxGCPauseMillis=200
networks:
- app-network
restart: always
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "5"
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# Redis
redis:
image: redis:7-alpine
container_name: kiero-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- app-network
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
# Prometheus
prometheus:
image: prom/prometheus:latest
container_name: kiero-prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
networks:
- app-network
restart: always
# Grafana
grafana:
image: grafana/grafana:latest
container_name: kiero-grafana
ports:
- "3000:3000"
env_file:
- .env.dev
volumes:
- grafana-data:/var/lib/grafana
environment:
- TZ=Asia/Seoul
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
depends_on:
- prometheus
networks:
- app-network
restart: always
# NocoDB
nocodb:
image: nocodb/nocodb:0.265.1
container_name: kiero-nocodb
ports:
- "9001:8080"
env_file:
- .env.dev
environment:
- NC_DB=mysql2://${NOCODB_DB_HOST}:3306?u=${DB_USERNAME}&p=${DB_PASSWORD}&d=${NOCODB_DB_NAME}
- NC_AUTH_JWT_SECRET=${NOCODB_JWT_SECRET}
- NC_ADMIN_EMAIL=${NOCODB_ADMIN_EMAIL}
- NC_ADMIN_PASSWORD=${NOCODB_ADMIN_PASSWORD}
- TZ=Asia/Seoul
volumes:
- nocodb-data:/usr/app/data
networks:
- app-network
restart: always
networks:
app-network:
driver: bridge
volumes:
redis-data:
prometheus-data:
grafana-data:
nocodb-data: