diff --git a/.env.example b/.env.example deleted file mode 100644 index 354d408..0000000 --- a/.env.example +++ /dev/null @@ -1,4 +0,0 @@ -ORCID_CLIENT_ID= -ORCID_CLIENT_SECRET= -DATABASE_URL=postgresql://postgres:postgres@db:5432/orcid_db -REDIS_URL=redis://redis:6379/0 \ No newline at end of file diff --git a/backend/.env.example b/backend/.env.example new file mode 100644 index 0000000..a10ec79 --- /dev/null +++ b/backend/.env.example @@ -0,0 +1,10 @@ +ORCID_CLIENT_ID=123412341234 +ORCID_CLIENT_SECRET=123412341234 + +API_KEY_NAME=X-API-Key +API_KEY_VALUE=123412341234 + +DATABASE_URL=postgresql://postgres:postgres@db:5432/orcid_db +REDIS_URL=redis://redis:6379/0 + +BASE_URL=http://localhost:8000/api \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2fc4f04..ac05f8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: ports: - "8000:8000" env_file: - - .env + - ./backend/.env environment: DATABASE_URL: postgresql://postgres:postgres@db:5432/orcid_db REDIS_URL: redis://redis:6379/0 @@ -25,6 +25,8 @@ services: - "5173:5173" depends_on: - backend + env_file: + - ./frontend/.env db: image: postgres:16