Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/enhance usage with docker #75

Merged
merged 2 commits into from
Jul 4, 2024
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ To generate certificate, run this command at the root of your project folder:
```shell
keytool -genkey -alias myKeyAlias -keyalg RSA -keysize 2048 -keystore src/main/resources/keystore.jks -validity 3650
```
You will be asked to set a password for the key store and another for the key itself. Make sure to use the same passwords in your .env file when building unless it will use the default "password" password.

### Generate certificate for cockroachdb

Expand Down
17 changes: 16 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,26 @@ services:
restart: always
image: leto-modelizer-api:latest
environment:
POSTGRES_DB: ${POSTGRES_DB:-leto_db}
POSTGRES_USER: ${POSTGRES_USER:-leto_admin}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
DATABASE_HOST: db:26257
DATABASE_NAME: ${DATABASE_NAME:-leto_db}
DATABASE_USER: ${DATABASE_USER:-leto_admin}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-password}
SSL_KEY_STORE: ${SSL_KEY_STORE:-classpath:keystore.jks}
SSL_KEY_STORE_PASSWORD: ${SSL_KEY_STORE_PASSWORD:-password}
SSL_KEY_PASSWORD: ${SSL_KEY_PASSWORD:-password}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
LIBRARY_HOST_WHITELIST: http://libraries/
SUPER_ADMINISTRATOR_LOGIN: ${SUPER_ADMINISTRATOR_LOGIN}
LETO_MODELIZER_URL: ${LETO_MODELIZER_URL:-http://localhost:8080/}
LETO_ADMIN_URL: ${LETO_ADMIN_URL:-http://localhost:9000/}
LIBRARY_HOST_WHITELIST: ${LIBRARY_HOST_WHITELIST:-http://libraries/}
CSRF_TOKEN_TIMEOUT: ${CSRF_TOKEN_TIMEOUT:-3600}
USER_SESSION_TIMEOUT: ${USER_SESSION_TIMEOUT:-3600}


ports:
- "8443:8443"
depends_on:
Expand Down
Loading