v0.7.1 Migration
This only applies if you are upgrading from a version before v0.7.1. The v0.7.1 release removed the need for a separate nginx container and config to serve the media files. Instead, the media files are now served by an instance of nginx running in the same container as the Django application.
Compose file changes
TIP
You can also just use the new docker-compose.advanced.yml file in the repository and change the environment variables to match your setup.
Remove the
nginxservice from yourdocker-compose.advanced.ymlfile.Update the
PUBLIC_URLenvironment variable in theserverservice (backend) to match the address of your server, instead of the previous nginx instance. For example, if your server is exposed tohttp://localhost:8000, setPUBLIC_URLtohttp://localhost:8000. If you are using a domain name, setPUBLIC_URLtohttps://api.yourdomain.comas an example.Change port mapping for the
serverservice. Right now it probably looks like this:yamlports: - "your-exposed-port:8000"Change it to:
yamlports: - "your-exposed-port:80"This is because the nginx instance in the container is now serving the Django application on port 80. The port on the left side of the colon is the port on your host machine and this can be changed to whatever you want. The port on the right side of the colon is the port the Django application is running on in the container and should not be changed.
Start the containers again. See the v0.7.1 changelog for everything else in the release.
