417f290056
- Add VITE_API_URL to docker-compose for frontend service. - Introduce FRONTEND_URL in backend environment files for redirection after Google login. - Update Google authentication router to use dynamic FRONTEND_URL for redirects.
40 lines
656 B
YAML
40 lines
656 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
container_name: backend
|
|
ports:
|
|
- "8070:8000"
|
|
volumes:
|
|
- ./backend:/app
|
|
depends_on:
|
|
- db
|
|
env_file:
|
|
- backend/.env
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
container_name: frontend
|
|
ports:
|
|
- "8071:5173"
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
environment:
|
|
- VITE_API_URL=http://localhost:8070/api
|
|
depends_on:
|
|
- backend
|
|
|
|
db:
|
|
image: mongo:4.4
|
|
container_name: mongo
|
|
restart: always
|
|
ports:
|
|
- "27018:27017"
|
|
volumes:
|
|
- mongo_data:/data/db
|
|
|
|
volumes:
|
|
mongo_data:
|