Files
ORCID2SWORD/docker-compose.yml
T
Alexis 104070159a fix: update ORCID_REDIRECT_URI and enhance OAuth callback handling
- Changed ORCID_REDIRECT_URI in docker-compose for updated ngrok URL.
- Allowed all hosts in vite.config.js to support HTTPS tunnels during OAuth flows.
- Improved handling of OAuth codes in AuthCallbackPage to prevent duplicate exchanges.
- Added function to fetch ORCID display names to enrich researcher data in API service.
2026-05-07 12:25:02 +02:00

59 lines
1.2 KiB
YAML

services:
backend:
build: ./backend
container_name: orcid-backend
restart: always
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
DATABASE_URL: postgresql://postgres:postgres@db:5432/orcid_db
REDIS_URL: redis://redis:6379/0
ORCID_REDIRECT_URI: https://jargon-supreme-palpable.ngrok-free.dev/callback
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
frontend:
build: ./frontend
container_name: orcid-frontend
restart: always
ports:
- "5173:5173"
depends_on:
- backend
env_file:
- ./frontend/.env
db:
image: postgres:16
container_name: orcid-postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: orcid_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d orcid_db"]
interval: 2s
timeout: 3s
retries: 20
redis:
image: redis:7
container_name: orcid-redis
restart: always
ports:
- "6379:6379"
volumes:
postgres_data: