chore: update readme, docker-compose.yml with examples
Diff
README.md | 2 +-
docker-compose.yml | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
@@ -41,7 +41,7 @@ I am using [Alpine](https://hub.docker.com/_/alpine/) as a base image, and the a
A sample `docker-compose.yml` file is also included.
On my home server, this service uses 964 KB of RAM with my license database, so it is lightweight.
On my staging server, this service uses 964 KB of RAM with my [license database](https://git.holly.sh/license-db.git), so it is lightweight.
## License
@@ -3,9 +3,13 @@ services:
lapi:
image: lapi:latest
volumes:
- /path/to/my/data/:/config
- /path/to/license_db:/config
environment:
- LICENSE_API_DATABASE=/config/licenses/database.yml
- LICENSE_API_DATABASE="/config/database.yml" - LICENSE_API_BASE_URL="/" - LICENSE_API_SERVER_IP="0.0.0.0" - LICENSE_API_SERVER_PORT="8080" - LICENSE_API_WELCOME_MESSAGE="/path/to/welcome.txt" ports:
- 3535:8080
restart: unless-stopped