-
Notifications
You must be signed in to change notification settings - Fork 5
How to install
Xiaofeng Xie edited this page Feb 7, 2023
·
22 revisions
-
Install Docker Compose following the official guide.
-
After downloading the repository, there are two files that need to be configured: .django_secrets.env_example and docker-compose.yml.
- Change .django_secrets.env_example to .django_secrets.env (don't forget the "." in the beginning of the file name).
- Configure docker-compose.yml:
- Change the source field of the bind section to provide four storage locations for the four sources fields (only change the source field, don't change the target field). For Windows hosts, the format is //d/docker/primary_storage, which means d:/docker/primary_raw. Linux uses its native format, /user/xxx/documents/primary_raw. There are up to four drives (primary_storage, secondary_storage, remote_storage, offline_storage) that can be used in the app. If you're not using all of them, you can comment out the unused ones using "#".
- (Optional) You can comment out the build section if you want Docker to download the image instead of building it from the source code (this is generally faster).
- Configure .django_secrets.env: Configure parameters used in the Django app, such as the time zone, debug mode, email server, Jupyter password, etc. You can leave them as they are or configure them as their names suggest.
-
After configuring the files, start the app by running "docker-compose up" in the folder, or use the GUI mode to right-click the docker-compose.yml file and choose "Compose Up".