.idea/.idea.SessionZero/.idea | ||
SessionZero | ||
.dockerignore | ||
.gitignore | ||
5e_template.szf | ||
design-doc.md | ||
docker-compose.yml | ||
Dockerfile | ||
global.json | ||
new-szf-docs.md | ||
nginx.conf | ||
old-react-datasets.txt | ||
README.docker.md | ||
run-remote.sh | ||
SessionZero.sln | ||
technical-specifications.md | ||
todo.md |
SessionZero Docker Deployment Guide
This guide explains how to build and deploy the SessionZero Blazor WebAssembly PWA using Docker.
Prerequisites
- Docker installed on your machine
- Docker Compose installed on your machine (optional, but recommended)
Building and Running with Docker Compose (Recommended)
-
Navigate to the project root directory (where the
docker-compose.yml
file is located) -
Run the following command to build and start the container:
docker-compose up -d --build
-
Access the application at http://localhost:80
Building and Running with Docker CLI
-
Navigate to the project root directory (where the
Dockerfile
is located) -
Build the Docker image:
docker build -t sessionzero .
-
Run the container:
docker run -d -p 80:80 --name sessionzero-app sessionzero
-
Access the application at http://localhost:80
Stopping the Container
With Docker Compose
docker-compose down
With Docker CLI
docker stop sessionzero-app
docker rm sessionzero-app
Troubleshooting
-
If you encounter any issues with the container not starting, check the logs:
docker logs sessionzero-app
-
Make sure port 80 is not being used by another application on your host machine. Note that port 80 often requires administrative privileges on most operating systems since it's a privileged port.
-
If the application doesn't work as expected, verify that all files were copied correctly by inspecting the container:
docker exec -it sessionzero-app sh ls -la /usr/share/nginx/html