Skip to content

SQLite to Docker

One command moves an SQLite installation into Docker. It needs Docker with the compose plugin; run it as root on the panel server:

Окно терминала
gowave migrate to-docker

The command:

  1. finds the current installation (/opt/gowave) and its .env, and checks SQLite for broken references between tables before changing anything;
  2. creates /opt/gowave-docker with docker-compose.yml and .env, carrying over the same APP_SECRET and all settings, and generates a PostgreSQL password;
  3. pulls the images, starts PostgreSQL, stops gowave.service and copies the data;
  4. starts the panel in Docker on the same port and waits until it answers;
  5. disables gowave.service; the gowave command then runs inside the container.

If any step fails, the Docker project is removed and the old panel is started again. The SQLite file is not modified, so you can also go back later:

Окно терминала
cd /opt/gowave-docker && docker compose down
ln -sf /opt/gowave/gowave-server /usr/local/bin/gowave
systemctl enable --now gowave

Flags: --dir <path> (project directory), --image <image>, --from <path> (old installation directory), --yes (no confirmation).