Simple image hosting server for personal use.
This application is intended to be used with Docker for convenience and flexibility. An image is published on the GitHub container registry for each new commit on the main branch. In order to start using Ykio, it is necessary to first set up a PostgreSQL database. Additional network configuration of your containers may be required to connect your Ykio container to PostgreSQL. In order for your images to be persistent on every restart of the container, we recommend that you set up a volume to mount on your container.
docker run --volume ykio_images:/app/images \
--publish 80:8080 \
--restart unless-stopped \
--env DB_DSN=host=<host> user=<user> password=<password> dbname=<dbname> port=5432 sslmode=disable TimeZone=Europe/Paris \
--env SEND_TOKEN=<generate your token> \
--detach \
ghcr.io/romitou/ykio:latestJust like with Docker, you need to set up a PostgreSQL database. We don't provide any binary application ready to run, so you'll have to build Ykio yourself. To do this, you will need to download Git and Go 1.17+ on your machine. Here are the steps to follow to build Ykio.
git clone https://github.com/Romitou/Ykio.git
cd Ykio
go get
CGO_ENABLED=1 GOOS=linux go build -ldflags "-s -w" -o ykio
chmod +x ./ykio
./ykio