go-duck-cli 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/devops.js +9 -4
- package/package.json +1 -1
package/generators/devops.js
CHANGED
|
@@ -96,6 +96,11 @@ services:
|
|
|
96
96
|
- "${dbPort}:5432"
|
|
97
97
|
volumes:
|
|
98
98
|
- postgres_data:/var/lib/postgresql/data
|
|
99
|
+
healthcheck:
|
|
100
|
+
test: ["CMD-SHELL", "pg_isready -U ${config.datasource?.username || 'postgres'} -d ${config.datasource?.database || 'go_duck_master'}"]
|
|
101
|
+
interval: 5s
|
|
102
|
+
timeout: 5s
|
|
103
|
+
retries: 5
|
|
99
104
|
networks:
|
|
100
105
|
- go-duck-net
|
|
101
106
|
|
|
@@ -166,7 +171,8 @@ services:
|
|
|
166
171
|
KC_DB_USERNAME: ${config.datasource?.username || 'postgres'}
|
|
167
172
|
KC_DB_PASSWORD: ${config.datasource?.password || 'password'}
|
|
168
173
|
depends_on:
|
|
169
|
-
|
|
174
|
+
postgres:
|
|
175
|
+
condition: service_healthy
|
|
170
176
|
volumes:
|
|
171
177
|
- ./keycloak/realm-config:/opt/keycloak/data/import
|
|
172
178
|
ports:
|
|
@@ -240,7 +246,7 @@ services:
|
|
|
240
246
|
- GO_DUCK_ELASTICSEARCH_ADDRESSES=http://elasticsearch:9200
|
|
241
247
|
depends_on:
|
|
242
248
|
postgres:
|
|
243
|
-
condition:
|
|
249
|
+
condition: service_healthy
|
|
244
250
|
redis:
|
|
245
251
|
condition: service_started
|
|
246
252
|
mosquitto:
|
|
@@ -254,8 +260,7 @@ services:
|
|
|
254
260
|
|
|
255
261
|
networks:
|
|
256
262
|
go-duck-net:
|
|
257
|
-
|
|
258
|
-
name: devops_go-duck-net
|
|
263
|
+
driver: bridge
|
|
259
264
|
`;
|
|
260
265
|
|
|
261
266
|
// --- 5. MQTT Broker Config ---
|