Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ dist
**/*.swp

# keycloak mounted volume
backend/keycloak/data/*
scripts/keycloak/data/*
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ After starting up the required services, setup and run the backend.
The backend is developed using [Python](https://www.python.org/), [FastAPI](https://fastapi.tiangolo.com/), [Motor](https://motor.readthedocs.io/en/stable/).

1. Switch to backend directory `cd backend`.
2. Install dependencies using `pipenv install`. See [pipenv](https://github.com/pypa/pipenv).
2. Install dependencies using `pipenv install --dev`. See [pipenv](https://github.com/pypa/pipenv).
3. Run app from command line (if you set it up in PyCharm you can use its debug functions):
```pipenv run uvicorn app.main:app --reload```
4. API docs are available at `http://localhost:8000/docs`. Default API is deployed at `http://localhost:8000/api/v2`.
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
image: nginx:1.19.2-alpine
hostname: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/minio-nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
Expand All @@ -75,8 +75,8 @@ services:
keycloak:
image: quay.io/keycloak/keycloak:latest
volumes:
- ./backend/keycloak/clowder-realm-dev.json:/opt/keycloak/data/import/realm.json:ro
- ./backend/keycloak/clowder-theme/:/opt/keycloak/themes/clowder-theme/:ro
- ./scripts/keycloak/clowder-realm-dev.json:/opt/keycloak/data/import/realm.json:ro
- ./scripts/keycloak/clowder-theme/:/opt/keycloak/themes/clowder-theme/:ro
command:
- start-dev
- --http-relative-path /keycloak
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
backend:
image: 'clowder/clowder2-backend'
build:
context: backend
context: ./backend
networks:
- clowder2
environment:
Expand All @@ -66,7 +66,7 @@ services:
frontend:
image: "clowder/clowder2-frontend"
build:
context: frontend
context: ./frontend
networks:
- clowder2
depends_on:
Expand Down Expand Up @@ -120,7 +120,7 @@ services:
networks:
- clowder2
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/minio-nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- minio1
- minio2
Expand All @@ -139,12 +139,12 @@ services:
POSTGRES_PASSWORD: password

keycloak:
image: quay.io/keycloak/keycloak:latest
image: quay.io/keycloak/keycloak:19.0.2
networks:
- clowder2
volumes:
- ./backend/keycloak/clowder-realm-prod.json:/opt/keycloak/data/import/realm.json:ro
- ./backend/keycloak/clowder-theme/:/opt/keycloak/themes/clowder-theme/:ro
- ./scripts/keycloak/clowder-realm-prod.json:/opt/keycloak/data/import/realm.json:ro
- ./scripts/keycloak/clowder-theme/:/opt/keycloak/themes/clowder-theme/:ro
command:
- start-dev
- --http-relative-path /keycloak
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.