Define in a .env
file located in project's root:
MSSQL_SA_PASSWORD
- used in Docker Compose to set the password of the database's admin account.JWT_SECRET
- a 256-bit secret key used to generate JWT keys.REGISTRY_PATH
- (optional) the url of your image registry. To store images locally do not set this variable or set it tolocalhost
.DOCKER_SOCKET_PATH
- (optional) used in docker-compose file. Set to//./pipe/docker_engine
if developing on Windows.
Additionally, GitHub Actions Secrets defines the following:
MSSQL_SA_PASSWORD
- used in Docker Compose to set the password of the database's admin account.JWT_SECRET
- a 256-bit secret key used to generate JWT keys.REGISTRY_PATH
- the address of your container registry (i.e.example.azurecr.io
). Must not end with a/
or contain protocol elements such ashttp://
etc.REGISTRY_USERNAME
- your Azure Container Registry username.REGISTRY_PASSWORD
- your Azure Container Registry password.DNS_NAME_LABEL
- a unique identifier for your website's DNS.AZURE_LOCATION
- the location of your Azure Container Registry, for examplepolandcentral
.AZURE_STORAGE_ACCOUNT
- the name of the storage account used to create the required file shares.AZURE_STORAGE_KEY
- the key to the storage account used to create the required file shares.
- Clone the repository
- Set the required environment variables in a .env file in the project's root.
- Run
docker compose up --build
Option 2: Run the docker compose using Azure Container Instances (ACI) and Azure Container Registry (ACR).
- Log in to Azure.
- Create a resource group.
- Create a container registry.
- Log in to the ACR.
- Get your ACR credentials.
- Setup the file shares on Azure using the guide found here.
- Fork the repository.
- Fill out GitHub Secrets.
- Push a commit to main to trigger the deployment workflow.