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:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: spotlightcam-nginx
|
container_name: slc-proxy-dev
|
||||||
depends_on:
|
depends_on:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
|
|
||||||
nginx-prod:
|
nginx-prod:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: spotlightcam-nginx-prod
|
container_name: slc-proxy-prod
|
||||||
depends_on:
|
depends_on:
|
||||||
- frontend-prod
|
- frontend-prod
|
||||||
- backend-prod
|
- backend-prod
|
||||||
@@ -50,7 +50,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: spotlightcam-frontend
|
container_name: slc-frontend-dev
|
||||||
expose:
|
expose:
|
||||||
- "5173"
|
- "5173"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -72,7 +72,7 @@ services:
|
|||||||
dockerfile: Dockerfile.prod
|
dockerfile: Dockerfile.prod
|
||||||
args:
|
args:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
container_name: spotlightcam-frontend-prod
|
container_name: slc-frontend-prod
|
||||||
expose:
|
expose:
|
||||||
- "5173"
|
- "5173"
|
||||||
environment:
|
environment:
|
||||||
@@ -93,7 +93,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: spotlightcam-backend
|
container_name: slc-backend-dev
|
||||||
env_file:
|
env_file:
|
||||||
- ./backend/.env.development
|
- ./backend/.env.development
|
||||||
expose:
|
expose:
|
||||||
@@ -123,7 +123,7 @@ services:
|
|||||||
dockerfile: Dockerfile.prod
|
dockerfile: Dockerfile.prod
|
||||||
args:
|
args:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
container_name: spotlightcam-backend-prod
|
container_name: slc-backend-prod
|
||||||
env_file:
|
env_file:
|
||||||
- ./backend/.env.production
|
- ./backend/.env.production
|
||||||
expose:
|
expose:
|
||||||
@@ -162,7 +162,7 @@ services:
|
|||||||
# ============================================
|
# ============================================
|
||||||
db:
|
db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: spotlightcam-db
|
container_name: slc-db-dev
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=spotlightcam
|
- POSTGRES_USER=spotlightcam
|
||||||
- POSTGRES_PASSWORD=spotlightcam123
|
- POSTGRES_PASSWORD=spotlightcam123
|
||||||
@@ -176,7 +176,7 @@ services:
|
|||||||
|
|
||||||
db-prod:
|
db-prod:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: spotlightcam-db-prod
|
container_name: slc-db-prod
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-spotlightcam}
|
- POSTGRES_USER=${POSTGRES_USER:-spotlightcam}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-spotlightcam123}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-spotlightcam123}
|
||||||
|
|||||||
Reference in New Issue
Block a user