- Pull all images
docker compose pull database redis
- Build the docker image:
docker compose build server
docker compose build server
- Copy the example configuration file from
./backend/app/config.example.toml to ./backend/app/config.toml
- Edit the configuration file
- The database user will be "postgres"
- The database host will be "database" (as the name of the service in the
docker-compose.yaml file)
- The redis host will be "redis" (as the name of the service in the
docker-compose.yaml file)
- Start the PostgreSQL and Redis containers
docker compose up -d database redis
- Start the docker container through docker compose
docker compose up -d server
- Visit website at http://localhost:8080
- Unignore the
docker-compose.override.yaml in the .gitignore file
- Make changes
- Stage the updated
docker-compose.override.yaml file
- Ignore the
docker-compose.override.yaml file in the .gitignore file