- vite.config.js: localhost:3000 → fromis9-backend:80 - docker-compose.yml: depends_on, VITE_API_URL 수정 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
services:
|
|
fromis9-frontend:
|
|
build: ./frontend
|
|
container_name: fromis9-frontend
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
environment:
|
|
- VITE_API_URL=http://fromis9-backend:80
|
|
# 개발 모드
|
|
volumes:
|
|
- ./frontend:/app
|
|
- frontend_modules:/app/node_modules
|
|
# 배포 모드 (사용 시 위 volumes를 주석처리)
|
|
# volumes: []
|
|
depends_on:
|
|
- fromis9-backend
|
|
networks:
|
|
- app
|
|
restart: unless-stopped
|
|
|
|
fromis9-backend:
|
|
build: ./backend
|
|
container_name: fromis9-backend
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
env_file:
|
|
- .env
|
|
# 개발 모드
|
|
volumes:
|
|
- ./backend:/app
|
|
- backend_modules:/app/node_modules
|
|
# 배포 모드 (사용 시 위 volumes를 주석처리)
|
|
# volumes: []
|
|
networks:
|
|
- app
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.6
|
|
container_name: fromis9-meilisearch
|
|
environment:
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
|
volumes:
|
|
- ./meilisearch_data:/meili_data
|
|
networks:
|
|
- app
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: fromis9-redis
|
|
volumes:
|
|
- ./redis_data:/data
|
|
networks:
|
|
- app
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
backend_modules:
|
|
frontend_modules:
|
|
|
|
networks:
|
|
app:
|
|
external: true
|
|
db:
|
|
external: true
|