This Docker image sets up Kotatsu Sync Server inside a docker container.
Kotatsu Sync Server is the server for the connected mode in Kotatsu.
To use docker-kotatsu-syncserver with an external database, follow these steps:
-
Download the database schema to initialize your database:
mariadb -h your_mysql_db_host -u user your_mysql_db_user < ./database.sql -
Clone and start the container:
docker run -p 8080:8080 \ -e DATABASE_HOST=your_mysql_db_host \ -e DATABASE_USER=your_mysql_db_user \ -e DATABASE_PASSWORD=your_mysql_db_password \ -e DATABASE_NAME=your_mysql_db_name \ -e DATABASE_PORT=your_mysql_db_port \ docker.io/aguslr/kotatsu-syncserver:latest -
Connect from your Kotatsu app to your Kotatsu Sync Server's IP address on port
8080.
Instead of pulling the image from a remote repository, you can build it locally:
-
Clone the repository:
git clone https://github.com/aguslr/docker-kotatsu-syncserver.git -
Change into the newly created directory and use
docker-composeto build and launch the container:cd docker-kotatsu-syncserver && docker-compose up --build -d