Only Docker Desktop is required.
WSL 2 users should follow this guide as well.
-
Clone your WeVoteServer fork
git clone https://github.com/wevote/WeVoteServer.git cd WeVoteServer -
Create an environment file called
.envto provide required settings. Example:DATABASE_PASSWORD=MyDBpassword DJANGO_SUPERUSER_EMAIL=email@test.com DJANGO_SUPERUSER_PASSWORD=MyAdminPassword # You can optionally override the default values for database user and name # DATABASE_USER=postgres # DATABASE_NAME=wevoteserverdb -
Create and start containers
docker compose up --detach --build --remove-orphansUse the
--profileflag, if you need to also run the AWS localstack container (when developing features specific to AWS environment).docker compose --profile optional up --detach --build --remove-orphansOnce docker is running, you can now access the API at http://localhost:8000/
-
Stop and remove containers
docker compose downUse the
--volumesflag to remove volumes (includes database data - you will lose all previously saved data). Only do this if you want to completely remove development environment or start over from scratch.docker compose down --volumes
-
Docker Compose
-
PostgreSQL