# Dockware Preview Deployment

This stack is intended to run permanently on the SSH server and expose Shopware at `dockware.domgan.de`.

## Initial setup on server

1. Create stack directory `/opt/containers/dockware-domgan`.
2. Copy `deploy/dockware/docker-compose.yml` into `/opt/containers/dockware-domgan/docker-compose.yml`.
3. Ensure the Traefik network used by your host is named `proxy` (or adjust the compose file).
4. Ensure your Traefik entrypoints are `http`/`https` and `le-tls` certresolver exists.
5. Run `docker compose up -d` in `/opt/containers/dockware-domgan`.

## GitHub Actions Secrets

- `DOCKWARE_SSH_HOST`
- `DOCKWARE_SSH_PORT`
- `DOCKWARE_SSH_USER`
- `DOCKWARE_SSH_PRIVATE_KEY`

If you still use an old compose with `./data:/var/www/html/var`, remove that mapping and run `docker compose up -d --force-recreate`.

After that, each `main` push deploys the plugin into the permanent Dockware shop and activates it.
