Skip to content

Commit 8ae2d7e

Browse files
committed
chore(docker): update image naming convention to 'docsplus' for consistency
- Changed image names in docker-compose.prod.yml and Makefile from 'docsy' to 'docsplus' to align with the new naming convention. - Updated cleanup commands to reflect the new image names for production and development environments.
1 parent d8f485f commit 8ae2d7e

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,20 +334,20 @@ clean:
334334
@if docker-compose -f docker-compose.dev.yml --env-file .env.development ps -q 2>/dev/null | grep -q .; then \
335335
echo "🧹 Cleaning up (development)..."; \
336336
docker-compose -f docker-compose.dev.yml --env-file .env.development down -v; \
337-
docker rmi docsy-webapp:dev 2>/dev/null || true; \
337+
docker rmi docsplus-webapp:dev 2>/dev/null || true; \
338338
echo "✅ Development cleanup complete"; \
339339
elif docker-compose -f docker-compose.prod.yml --env-file .env.production ps -q 2>/dev/null | grep -q .; then \
340340
echo "🧹 Cleaning up (production)..."; \
341341
docker-compose -f docker-compose.prod.yml --env-file .env.production down -v; \
342-
docker rmi docsy-webapp:latest docsy-hocuspocus:latest 2>/dev/null || true; \
342+
docker rmi docsplus-webapp:latest docsplus-hocuspocus:latest 2>/dev/null || true; \
343343
echo "✅ Production cleanup complete"; \
344344
elif docker-compose -f docker-compose.local.yml --env-file .env.development ps -q 2>/dev/null | grep -q .; then \
345345
echo "🧹 Cleaning up (local)..."; \
346346
docker-compose -f docker-compose.local.yml --env-file .env.development down -v; \
347347
echo "✅ Local cleanup complete"; \
348348
else \
349349
echo "🧹 No running containers found. Cleaning up project images..."; \
350-
docker rmi docsy-webapp:dev docsy-webapp:latest docsy-hocuspocus:latest 2>/dev/null || true; \
350+
docker rmi docsplus-webapp:dev docsplus-webapp:latest docsplus-hocuspocus:latest 2>/dev/null || true; \
351351
docker volume rm docsy-postgres-dev docsy-redis-dev docsy-postgres-prod docsy-redis-prod docsy-postgres-local docsy-redis-local 2>/dev/null || true; \
352352
docker network rm docsy-network-dev docsy-network docsy-network-local 2>/dev/null || true; \
353353
echo "✅ Cleanup complete"; \
@@ -423,7 +423,7 @@ deploy-prod:
423423

424424
rollback-prod:
425425
@echo "🔄 Rolling back production..."
426-
@PREV_TAG=$$(docker images docsy-webapp --format "{{.Tag}}" | grep -v latest | head -1); \
426+
@PREV_TAG=$$(docker images docsplus-webapp --format "{{.Tag}}" | grep -v latest | head -1); \
427427
if [ -n "$$PREV_TAG" ]; then \
428428
echo "Rolling back to: $$PREV_TAG"; \
429429
sed -i.bak "s/DEPLOY_TAG=.*/DEPLOY_TAG=$$PREV_TAG/" .env.production; \

docker-compose.prod.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@
1919
# Usage:
2020
# docker compose -f docker-compose.prod.yml --env-file .env.production up -d
2121
#
22+
# Naming Convention:
23+
# - Project: docsplus
24+
# - Containers: docsplus-{service}-{replica} (e.g., docsplus-webapp-1)
25+
# - Images: docsplus-{service}:{tag}
26+
# - Network: docsplus-network
27+
#
2228
# =============================================================================
2329

30+
name: docsplus
31+
2432
services:
2533
# ===========================================================================
2634
# TRAEFIK - Reverse Proxy & SSL
@@ -104,7 +112,7 @@ services:
104112
# REST API (Hocuspocus)
105113
# ===========================================================================
106114
rest-api:
107-
image: docsy-hocuspocus:${DEPLOY_TAG:-latest}
115+
image: docsplus-hocuspocus:${DEPLOY_TAG:-latest}
108116
env_file: .env.production
109117
build:
110118
context: ./packages/hocuspocus.server
@@ -182,7 +190,7 @@ services:
182190
# HOCUSPOCUS WEBSOCKET SERVER
183191
# ===========================================================================
184192
hocuspocus-server:
185-
image: docsy-hocuspocus:${DEPLOY_TAG:-latest}
193+
image: docsplus-hocuspocus:${DEPLOY_TAG:-latest}
186194
env_file: .env.production
187195
build:
188196
context: ./packages/hocuspocus.server
@@ -265,7 +273,7 @@ services:
265273
# HOCUSPOCUS WORKER (Background Jobs)
266274
# ===========================================================================
267275
hocuspocus-worker:
268-
image: docsy-hocuspocus:${DEPLOY_TAG:-latest}
276+
image: docsplus-hocuspocus:${DEPLOY_TAG:-latest}
269277
env_file: .env.production
270278
build:
271279
context: ./packages/hocuspocus.server
@@ -328,7 +336,7 @@ services:
328336
# WEBAPP (Next.js Frontend)
329337
# ===========================================================================
330338
webapp:
331-
image: docsy-webapp:${DEPLOY_TAG:-latest}
339+
image: docsplus-webapp:${DEPLOY_TAG:-latest}
332340
env_file: .env.production
333341
build:
334342
context: .

0 commit comments

Comments
 (0)