- ⚙️ Swarm mode
- 🌍 i18n (multilang configs)
- ⌨️ Dev / Production environments
- 🔵 nginx
- 📙 PostgreSQL
- 🤹 redis
- 🎈 memcached
- 🧯 AWS
-
ClientId, ClientSecrets, Admin email, passwords should be configured using env files. They will be written into DB using help scripts automatically.
-
Copy all files from
env-templatesinto.envs/.localor.envs/.production. Move .env file into the current folder from.envs/.*.envis a common env for all services - this file and docker .yml file should be in the same folder.env.apiis for api service.common.internal.envis for api and db services.webclient.envis for webclient service.wrapper.envis for wrapper service
-
Configure environments
-
Build images:
docker-compose -f docker-stack.yml buildThis should build these images:
saascontainerization_wrapper, saascontainerization_webclient, saascontainerization_api -
Run docker swarm:
docker stack deploy -c <(docker-compose -f docker-stack.yml config) {stack name} -
Go to django admin panel (
http://127.0.0.1:9999/saas_api/admin/), create a new Api Key. -
Add the key to
.envfile. -
Re-deploy the stack;
docker stack deploy -c <(docker-compose -f docker-stack config) <stack name>
OR:
- Restart
webclientservice in your stack (this will rebuild the angular project and run ssr server) - Restart
wrapperservice in your stack
- Rebuild Image:
docker-compose -f docker-stack.yml build wrapper - Update:
docker service update --force --image saascontainerization_wrapper saasApp_wrapper - Restart:
docker service update --force <stack_name>_<service_name>
Email us at [email protected] or [email protected]