mock

module
v0.0.0-...-4e734dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2024 License: MIT

README

Simple mock service

Instaling

clone code with GIT and deploy from Docker compose

git clone ... OR unpack release source code zip (tar.gz)
docker-compose up
Run-time Customization

The container can be customized in runtime by setting environment from docker's command line or as a part of docker-compose.yml

  • FILE_DB - path to sqlite database, default /srv/data/mock.db
  • FILE_LOG - path to sqlite database, default /srv/data/mock.log

from https://github.com/umputun/baseimage/blob/master/README.md

  • TIME_ZONE - set container's TZ, default "America/Chicago". For scratch-based TZ should be used instead
  • APP_UID - UID of internal app user, default 1001
Use
http://localhost:8080/<route>

8080 default port, edit docker-compose.yml for change it

Administration routes
http://localhost:8080/admin

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL