Quickstart with Docker Compose
The fastest way to try Swiple locally is using Docker and Docker Compose.
1. Install Docker Engine and Docker Compose
Mac OSX
Window
2. Clone Swiple GitHub Repository
Clone Swiple GitHub Repository in your terminal with the following command:
git clone https://github.com/Swiple/swiple.git
# or
git clone git@github.com:Swiple/swiple.git
Once the command completes successfully, you should see a new swiple
folder in your current directory, navigate to it.
cd swiple
3. Launch Swiple with Docker Compose
When working on the main
branch, run the following commands:
docker compose -f docker-compose-non-dev.yaml pull
docker compose -f docker-compose-non-dev.yaml up
This will start the following services:
- Swiple API
- Swiple UI
- Swiple Scheduler
- Swiple Setup
- OpenSearch Cluster
- PostgreSQL (Sample Data)
- Redis
You should start to see a wall of logging output from the containers being launched on your machine. Once the output slows, you can navigate to http://127.0.0.1:3000/login to see the app running.
This will bring up Swiple in a non-dev mode, changes to the codebase will not be reflected. If you would like to run Swiple in dev mode to test local changes, follow the steps in Start Developing Locally.
4. Sign in to Swiple at http://127.0.0.1:3000/login
Nice work! 👏 😎
Before deploying to production, make the following changes to docker/.env-non-dev
- Update
ADMIN_EMAIL
andADMIN_PASSWORD
. - Set
AUTH_COOKIE_SECURE
toTrue
. - Generate a new
SECRET_KEY
as shown in How to Update SECRET_KEY.