-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26f116c
commit e5d2344
Showing
5 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,22 @@ | |
|
||
## Deployment with Docker (recommended quickstart) | ||
|
||
This was a bit rushed so the deployment utilizes a single docker file `docker-compose.prod.yml` in the root of the directory | ||
This was a bit rushed so the deployment utilizes a single | ||
docker file `docker-compose.prod.yml` in the root of the directory | ||
|
||
I wanted some simple instructions below to configure the deployment | ||
|
||
Be sure to use the proper hostname (batdetectai.kitware.com) in all locations that require it. | ||
Be sure to use the proper hostname (batdetectai.kitware.com) in | ||
all locations that require it. | ||
|
||
## Docker Compose Differences | ||
|
||
I created a `client` service which has it's own Dockerfile and builds the vue client app. The `client` service also uses a reverse proxy to route `/api`, `/admin` fields to the django server. | ||
The client will need to be built with a different Client ID for accessing the server. | ||
I created a `client` service which has it's own Dockerfile and | ||
builds the vue client app. | ||
The `client` service also uses a reverse proxy to route | ||
`/api`, `/admin` fields to the django server. | ||
The client will need to be built with a different Client ID | ||
for accessing the server. | ||
|
||
### Initial Setup for Deployment | ||
|
||
|
@@ -21,7 +27,7 @@ The client will need to be built with a different Client ID for accessing the se | |
3. Run `docker compose run --rm django ./manage.py makeclient \ | ||
--username [email protected] \ | ||
--uri https://batdetectai.kitware.com/` | ||
4. Run `docker compose run --rm django ./manage.py collectstatic` to collect the static files | ||
4. Run `docker compose run --rm django ./manage.py collectstatic`to collect the static files | ||
5. Run `docker compose -f docker-compose.prod.yml up` to start the server add `-d` for a silent version to run in the background | ||
6. Copy over the ./dev/.env.prod.docker-compose.template to `./dev/.env.prod.docker-compose.template` and change the default passwords | ||
7. Change the ID in the `./client/env.production` to a custom ID | ||
|
@@ -30,4 +36,4 @@ The client will need to be built with a different Client ID for accessing the se | |
|
||
### system.d service | ||
|
||
Service that will automatically start and launch the server | ||
Service that will automatically start and launch the server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ DJANGO_MINIO_STORAGE_ACCESS_KEY=minioAccessKey | |
DJANGO_MINIO_STORAGE_SECRET_KEY=minioSecretKey | ||
DJANGO_STORAGE_BUCKET_NAME=django-storage | ||
DJANGO_MINIO_STORAGE_ENDPOINT=minio:9000 | ||
DJANGO_CORS_ORIGIN_WHITELIST=http://batdetectai.kitware.com | ||
DJANGO_EMAIL_URL=submission://USER:[email protected] | ||
DJANGO_ALLOWED_HOSTS=['batdetectai.kitware.com'] | ||
SERVERHOSTNAME=batdetectai.kitware.com | ||
DJANGO_SECRET_KEY=changeme | ||
ACME_EMAIL=Bryon.Lewis@kitware.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters