I want to change the base URL in a Docker environment
Answer¶
Please change the settings according to the following procedure.
Overview¶
In a Docker environment, if you install Pleasanter according to the manual procedure Use a Docker Image and Start It by Changing the Parameters from the Default, the URL will be as follows:
However,
If you want to change it to a "Base URL" with a path like this, please follow the steps below to set it up.
Cautions¶
- If you perform this procedure on a running Pleasanter, attachments, description column, images pasted in comments, and site images (icons) will no longer be displayed. To resolve this, attach or paste again. Please consider carefully before changing the base URL while it is running.
Operation Procedure¶
To change the base URL, follow the steps below. The following steps use the base URL as an example.
- Dockerfile settings
- Setting the parameter file "Service.json"
- Building the container image
- Starting Pleasanter
*The file paths shown in the following steps are for when you follow the procedure Use a Docker Image and Start It by Changing the Parameters from the Default, so please read them appropriately according to your environment.
1. Set Dockerfile¶
Add ""--pathBase", "/nakano"" to the ENTRYPOINT for /Pleasanter/Dockerfile as follows.
2. Set the parameter file Service.json¶
Set "AbsoluteUri" in "Service.json" as follows.
3. Build the container image¶
Execute the following command.
4. Start Pleasanter¶
Create a container and start Pleasanter.