An E-learning website backend, written in Django
- Rename .env.dev-sample to .env.dev
- Update the environment variables in the docker-compose.yml and .env.dev files
- Build and run using:
$ docker-compose up -d --build
- Test the apis at http://localhost:8000
- Rename .env.prod-sample to .env.prod and .env.prod.db-sample to .env.prod.db and update the environment variables.
- Give execution permission to deploy.sh script and then run it by:
This will build the nuxt client app and move it to nginx/client folder, and then calls docker-compose to build and run the system. You can manually build the nuxt client and move the dist/ folder to nginx/client/ and then call docker-compose with command:
$ chmod +x ./deploy.sh $ ./deploy.sh
$ docker-compose -f docker-compose.prod.yml up -d --build
- Test the system at http://localhost
If you faced permission problem with the entrypoint scripts, you should give execution access to this files. Use commands:
~ chmod +x entrypoint.sh
~ chmod +x entrypoint.prod.sh