Deploy with Docker
First make sure you have installed Docker and Docker Compose.
Steps
Create a directory on your server, for example
~/subconv.Create a
docker-compose.ymlfile in that directory with the following content:yamlversion: '3' services: subconv: image: wouisb/subconv:latest container_name: subconv restart: unless-stopped ports: - "8080:8080" volumes: - ./config.yml:/app/config.ymlNote: Here the first
8080is the port you want to map to, you can modify it as needed.Run
docker compose run --rm -v ./config.yml:/app/config.yml subconv -G defaultto generate the default configuration file in the directory. You can modify it as needed. If you need to use ZJU's configuration file, you can usedocker compose run --rm -v ./config.yml:/app/config.yml subconv -G zjuto generate ZJU's configuration file. For detailed configuration items, please refer to ConfigurationRun
docker compose up -dto start the service.Enjoy