Let's go through the steps to deploy MoaiTime to your Docker Swarm cluster.
The steps are exactly the same as for the Docker Compose deployment, so please follow the steps from the DEPLOY-TO-DOCKER-COMPOSE.md file.
# In case your docker swarm cluster is not yet initialized, you can do so with the following command:
docker swarm init
./scripts/deploy-to-docker-swarm.sh
After all the services had been deployed, we will first need to find the perpetually running CLI container.
docker ps -a | grep -F moaitime_moaitime-cli.
# Example output:
# ee752e6ea743 moaitime/moaitime-cli:latest "tail -f /dev/null" 46 hours ago Up 46 hours (healthy) moaitime_moaitime-cli.1.srj4nxdyehe19koy15586cc2v
Then after we have the ID, we check that all of the services are working as expected:
docker exec -it ee752e6ea743 ./cli health:check # of course you will need to replace the ID with the one you got from the previous command
Now we can run the database reload command to create the database schema, run the migrations, insert the seed data and insert the fixture data:
docker exec -it ee752e6ea743 ./cli database:reload
You can now access MoaiTime at http://localhost:4200. The default credentials are - email: [email protected]
, password: password
This is where we reached the end of the installation process. You can now enjoy MoaiTime!