Genie Snap (forms, submissions and eSign) as a set of Linux containers. One compose app, published here, runs the whole stack: website, data API, cache, SQL Server 2025 Express, Garnet and an nginx HTTPS proxy.
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 up -d -y
oci:// compose apps (docker compose version; update if -f oci://… is rejected)GenieSnap.lic + GenieSnap.key) issued for your site's host namegenie.example.comgenie.env# required
SITE_HOST=genie.example.com
PUBLIC_URL=https://genie.example.com
HTTP_PORT=80
HTTPS_PORT=443
# email (needed for sign-in codes)
[email protected]
SERVICE_EMAIL_NAME=Genie Snap
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_ENABLE_SSL=true
Use plain values with no quotes and no $. Keep the file private. If you use a port other than 443, add it to PUBLIC_URL, for example https://genie.example.com:5002. Every other setting is optional; see Settings.
genie-files folder| File | Needed | Purpose |
|---|---|---|
GenieSnap.lic, GenieSnap.key | yes | Licence, used by the website and the data API |
sso.json | no | Single sign-on. If you don't provide one, SSO is switched off. |
billing.json | no | Stripe billing |
site.crt, site.key | no | Your HTTPS certificate (PEM, full chain) and key. If you don't provide them, a self-signed certificate is generated. |
esign.pfx, dataprotection.pfx | no | Your own certificates. Their passwords go in ESIGN_PFX_PASSWORD / DP_CERT_PASSWORD. If you don't provide them, they are generated. |
SophicGenie.bak, SophicGenieSign.bak, SophicGenieLog.bak | no | Bring over data from an existing installation. Without them, empty databases are created. |
Anything else in the folder (such as esign-consent*.json or localization/) is copied to the website. To put a file somewhere specific, place it in a client/, dataapi/ or certs/ subfolder.
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 create
docker cp genie-files/. geniesnap-setup-1:/site/import
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 up -d -y
On Windows PowerShell the commands are the same. The first start takes a minute or two while SQL Server initialises and the databases are created or restored. Then open PUBLIC_URL.
| Order | Service | Role |
|---|---|---|
| 1 | setup | One-shot. Creates the passwords and keys, files your licence and certificates in place, generates whatever certificates are missing, and seeds the sample forms. |
| 2 | sql | SQL Server 2025 Express |
| 3 | db-setup | One-shot. Restores your .bak files, or creates empty databases, then sets up the database logins. Does nothing else if the databases already exist. |
| 4 | garnet, webgeniecache, webgeniedataapi, webgenieclient | The application |
| 5 | proxy | nginx, serving HTTPS on HTTPS_PORT and redirecting HTTP_PORT to it |
Both one-shot services run again on every up. They only create what is missing, so this is safe, and it is also how updates repair older instances.
All of these are optional. An empty value means the default is used, or a value is generated on the first run and kept.
| Setting | Default | Notes |
|---|---|---|
SITE_HOST | localhost | Must match the licence |
PUBLIC_URL | https://SITE_HOST:HTTPS_PORT | The address users browse to |
HTTP_PORT / HTTPS_PORT | 80 / 443 | |
SERVICE_EMAIL, SERVICE_EMAIL_NAME | The address emails are sent from. Your mail provider must allow it (a verified sender). | |
ADMIN_EMAIL, ADMIN_EMAIL_NAME, SUPPORT_EMAIL | SERVICE_EMAIL | |
SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_ENABLE_SSL | 587, true | |
SENDGRID_API_KEY | If set, SendGrid is used instead of SMTP | |
SA_PASSWORD, GENIE_DB_PASSWORD | generated | SQL Server sa and application logins. No ; or '. SA_PASSWORD only applies the first time. |
AES_KEY, AES_IV, SYSTEM_INTEGRATION_KEY | generated | Set all three to the values from an existing installation when moving it here. |
INTERNAL_SERVICE_KEY, DOWNLOAD_TOKEN_SECRET | generated | |
ESIGN_PFX_PASSWORD, DP_CERT_PASSWORD | generated | Required if you supply your own .pfx files |
ESIGN_CONTACT_INFO, ESIGN_LOCATION | Shown in eSign certificates | |
STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET | Stripe billing | |
PROMPT_API_KEY, DISPLAY_CHATBOT_INSTRUCTIONS | AI form assistant | |
MSSQL_PID | Express | SQL Server edition |
GARNET_VERSION | 2.2.13 | |
FRONT_NET / BACK_NET | 172.30.0 / 172.31.0 | Change these to run a second site on the same host |
The project name is geniesnap, so once the stack exists you don't need the oci:// address for these:
docker compose -p geniesnap ps # status
docker compose -p geniesnap logs -f webgenieclient webgeniedataapi # logs
docker compose -p geniesnap restart webgenieclient # restart the website
docker compose -p geniesnap stop # stop (data is kept)
docker compose -p geniesnap start # start again
Change a site file (a new licence, sso.json or certificate):
docker cp genie-files/. geniesnap-setup-1:/site/import
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 up -d -y
docker compose -p geniesnap restart webgenieclient webgeniedataapi proxy
Change a setting in genie.env: run the same up -d -y command again. Compose recreates only the services that are affected.
Connect to the database (sa password):
docker exec -it geniesnap-sql-1 bash -c '/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$(cat /secrets/SA_PASSWORD)" -C'
Change the tag to the new version. Run pull first, because Compose otherwise keeps images it already has under the same tag:
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:23 pull
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:23 up -d -y
Data, secrets and certificates live in volumes and are kept.
| Volume | Contents |
|---|---|
geniesnap_mssql-data | Databases |
geniesnap_files | Submissions, forms, samples, videos |
geniesnap_secrets | Generated passwords and keys, one file each |
geniesnap_certs | Certificates in use |
geniesnap_keys | Data Protection keys (sign-in cookies) |
geniesnap_site | Licence, sso.json, billing.json and other site files |
geniesnap_backup | .bak files to restore; SQL Server backups |
Back up at least mssql-data, files, secrets and certs. Losing secrets or certs makes the existing data unreadable.
Run a second, separate instance on the same host: give it its own project name, ports and networks:
docker compose -p genie2 --env-file genie2.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 up -d -y
Here the setup container is genie2-setup-1, and genie2.env sets different HTTP_PORT, HTTPS_PORT, FRONT_NET and BACK_NET.
Delete an instance completely, including all its data:
docker compose -p geniesnap down -v
To read or customise the compose file, save it:
docker compose --env-file genie.env -f oci://docker.io/geniesnapsupport/geniesnap_linux:22 config --no-interpolate > docker-compose.yml
docker compose --env-file genie.env up -d
| Symptom | Fix |
|---|---|
/LicenseError page | The licence is missing or was issued for another host name. Copy GenieSnap.lic + .key in (see Change a site file) and check that SITE_HOST matches the licence. |
| Browser says refused to connect | PUBLIC_URL must include the port when HTTPS_PORT isn't 443. Check docker compose -p geniesnap ps. |
| Certificate warning | Expected with the generated self-signed certificate. Supply site.crt + site.key. |
| Sign-in codes or emails don't arrive | Check docker compose -p geniesnap logs webgenieclient. With SMTP, the SERVICE_EMAIL sender must be verified with your provider, which otherwise accepts the message and then drops it. |
| Cannot return null from an action method after recreating an instance | Old sign-in cookies. Clear this site's cookies in the browser or use a private window. |
| Form generation fails, or EXECUTE permission denied in the data API | The instance was created by an older image. Run the two Updating commands with your current tag. |
setup exits with PASSWORD does not open …pfx | ESIGN_PFX_PASSWORD / DP_CERT_PASSWORD don't match the .pfx files you supplied. |
| A one-shot service failed | docker compose -p geniesnap logs setup db-setup |
| Old submissions appear in a "new" instance | The volumes were reused, because the project name is the same. Delete the instance first, or use -p with a new name. |
| Image | Contents |
|---|---|
geniesnapsupport/geniesnap_linux | The compose app (this page) |
geniesnapsupport/geniesnap_linux-webgenieclient | Website (.NET 10, Ubuntu 24.04, Liberation and Microsoft core fonts) |
geniesnapsupport/geniesnap_linux-webgeniedataapi | Data API |
geniesnapsupport/geniesnap_linux-webgeniecache | Cache service |
geniesnapsupport/geniesnap_linux-proxy | nginx (Debian), HTTPS and routing |
geniesnapsupport/geniesnap_linux-setup | Setup and database scripts (based on the SQL Server image) |
Also used: mcr.microsoft.com/mssql/server:2025-latest and ghcr.io/microsoft/garnet.
Tags follow the Genie Snap release number (22). By using these images you accept the Genie Snap Terms of Service and EULA, and the SQL Server licence (ACCEPT_EULA=Y is set for you).