Switch to whole new entrypoint system

This commit is contained in:
Simon Beginn 2021-10-14 13:13:15 +02:00
parent cb8a95e6d6
commit 0630b22611
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6
7 changed files with 92 additions and 98 deletions

View file

@ -37,25 +37,26 @@ _Please note that any architecture other than the classic `amd64` is slightly bi
#### Docker Compose
You can use `docker-compose` instead of building and running the Dockerfile, so you do not need to respecify your settings again and again. The following Docker Compose file will deploy the `latest` image with the log into your local directory.
Make sure to take a look into the `entrypoint.py` script to see all supported variable mappings!
```yaml
version: '3'
services:
kms:
image: pykmsorg/py-kms:latest
image: pykmsorg/py-kms:python3
ports:
- 1688:1688
- 8080:8080
environment:
- IP=0.0.0.0
- SQLITE=true
- HWID=RANDOM
- LOGLEVEL=INFO
- LOGSIZE=2
- LOGFILE=/var/log/pykms_logserver.log
- LOGFILE=/dev/stdout
restart: always
volumes:
- ./db:/home/py-kms/db
- /etc/localtime:/etc/localtime:ro
- ./logs:/var/log:rw
```
#### Parameters