mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-10 09:32:41 +08:00
Add minimal dodcker-compose description. (#98)
* Add minimal dodcker-compose description * added policy Co-authored-by: Matteo ℱan <SystemRage@protonmail.com>
This commit is contained in:
parent
7d8dce609c
commit
de1c115967
1 changed files with 25 additions and 0 deletions
|
@ -17,6 +17,31 @@ docker run -it -d --name py3-kms \
|
||||||
_Make sure to insert at `[TAG]` your wanted edition! The default is `latest`, which does not include SQLite support. For all available tag check [this](https://hub.docker.com/r/pykmsorg/py-kms/tags)._
|
_Make sure to insert at `[TAG]` your wanted edition! The default is `latest`, which does not include SQLite support. For all available tag check [this](https://hub.docker.com/r/pykmsorg/py-kms/tags)._
|
||||||
Therefore you can omit the `-e SQLITE=...` and `-p 8080:8080` option if you plan to use the `minimal` or `latest` image.
|
Therefore you can omit the `-e SQLITE=...` and `-p 8080:8080` option if you plan to use the `minimal` or `latest` image.
|
||||||
|
|
||||||
|
## Docker-compose
|
||||||
|
|
||||||
|
You can use docker-compose instead of Dockerfile. The following compose file will deploy `latest` image into your local directory.
|
||||||
|
|
||||||
|
```
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
kms:
|
||||||
|
image: pykmsorg/py-kms:latest
|
||||||
|
ports:
|
||||||
|
- 1688:1688
|
||||||
|
environment:
|
||||||
|
- IP=0.0.0.0
|
||||||
|
- SQLITE=true
|
||||||
|
- HWID=RANDOM
|
||||||
|
- LOGLEVEL=INFO
|
||||||
|
- LOGSIZE=2
|
||||||
|
- LOGFILE=/var/log/pykms_logserver.log
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ./:/var/log:rw
|
||||||
|
```
|
||||||
|
|
||||||
# Sqlite-web
|
# Sqlite-web
|
||||||
A web-based SQLite database browser written in Python.
|
A web-based SQLite database browser written in Python.
|
||||||
Start on http://example.com:8080/ in read-only mode for _pykms_database.db_.
|
Start on http://example.com:8080/ in read-only mode for _pykms_database.db_.
|
||||||
|
|
Loading…
Reference in a new issue