refactor: shorten container names to slc-* prefix
Dev containers: - spotlightcam-nginx → slc-proxy-dev - spotlightcam-backend → slc-backend-dev - spotlightcam-db → slc-db-dev - spotlightcam-frontend → slc-frontend-dev Prod containers: - spotlightcam-nginx-prod → slc-proxy-prod - spotlightcam-backend-prod → slc-backend-prod - spotlightcam-db-prod → slc-db-prod - spotlightcam-frontend-prod → slc-frontend-prod
This commit is contained in:
@@ -10,7 +10,7 @@ services:
|
||||
# ============================================
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: spotlightcam-nginx
|
||||
container_name: slc-proxy-dev
|
||||
depends_on:
|
||||
- frontend
|
||||
- backend
|
||||
@@ -24,7 +24,7 @@ services:
|
||||
|
||||
nginx-prod:
|
||||
image: nginx:alpine
|
||||
container_name: spotlightcam-nginx-prod
|
||||
container_name: slc-proxy-prod
|
||||
depends_on:
|
||||
- frontend-prod
|
||||
- backend-prod
|
||||
@@ -50,7 +50,7 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: spotlightcam-frontend
|
||||
container_name: slc-frontend-dev
|
||||
expose:
|
||||
- "5173"
|
||||
volumes:
|
||||
@@ -72,7 +72,7 @@ services:
|
||||
dockerfile: Dockerfile.prod
|
||||
args:
|
||||
- NODE_ENV=production
|
||||
container_name: spotlightcam-frontend-prod
|
||||
container_name: slc-frontend-prod
|
||||
expose:
|
||||
- "5173"
|
||||
environment:
|
||||
@@ -93,7 +93,7 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: spotlightcam-backend
|
||||
container_name: slc-backend-dev
|
||||
env_file:
|
||||
- ./backend/.env.development
|
||||
expose:
|
||||
@@ -123,7 +123,7 @@ services:
|
||||
dockerfile: Dockerfile.prod
|
||||
args:
|
||||
- NODE_ENV=production
|
||||
container_name: spotlightcam-backend-prod
|
||||
container_name: slc-backend-prod
|
||||
env_file:
|
||||
- ./backend/.env.production
|
||||
expose:
|
||||
@@ -162,7 +162,7 @@ services:
|
||||
# ============================================
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
container_name: spotlightcam-db
|
||||
container_name: slc-db-dev
|
||||
environment:
|
||||
- POSTGRES_USER=spotlightcam
|
||||
- POSTGRES_PASSWORD=spotlightcam123
|
||||
@@ -176,7 +176,7 @@ services:
|
||||
|
||||
db-prod:
|
||||
image: postgres:15-alpine
|
||||
container_name: spotlightcam-db-prod
|
||||
container_name: slc-db-prod
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER:-spotlightcam}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-spotlightcam123}
|
||||
|
||||
Reference in New Issue
Block a user