mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-23 14:56:13 +08:00
Add Dockerfile; Update Makefile and dependencies
This commit is contained in:
27
README.md
27
README.md
@@ -23,11 +23,30 @@ installed in order to build the frontend assets.
|
||||
Download the source code and then run:
|
||||
|
||||
```sh
|
||||
$ make build
|
||||
make build
|
||||
```
|
||||
|
||||
The `asynqmon` binary should be created in the current directory.
|
||||
|
||||
### Running from Docker
|
||||
|
||||
To run Asynqmon in Docker container, you only need to install [Docker](https://www.docker.com/get-started) to your system. No need to install [Node.js](https://nodejs.org/) and [Yarn](https://yarnpkg.com/), they will be installed automatically in container.
|
||||
|
||||
After that, just run this command:
|
||||
|
||||
```sh
|
||||
make docker
|
||||
```
|
||||
|
||||
By default, Asynqmon runs on `http://localhost:8080` and waiting to connect to the Redis server on port `6379`. You can easily change this settings by running Docker container with custom options, like this:
|
||||
|
||||
```sh
|
||||
docker run --rm \
|
||||
--name asynqmon \
|
||||
-p 3000:3000 \
|
||||
asynqmon --port=3000 --redis_addr=localhost:6380
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Asynqmon server needs to connect to redis server to serve data.
|
||||
@@ -36,19 +55,19 @@ By default, it connects to redis server running on port 6379 locally, and the se
|
||||
To use the defaults, simply run and open http://localhost:8080.
|
||||
|
||||
```sh
|
||||
$ asynqmon
|
||||
asynqmon
|
||||
```
|
||||
|
||||
Pass flags to specify port, redis server address, etc.
|
||||
|
||||
```sh
|
||||
$ asynqmon --port=3000 --redis_addr=localhost:6380
|
||||
asynqmon --port=3000 --redis_addr=localhost:6380
|
||||
```
|
||||
|
||||
To see all available flags, run
|
||||
|
||||
```sh
|
||||
$ asynqmon --help
|
||||
asynqmon --help
|
||||
```
|
||||
|
||||
## License
|
||||
|
Reference in New Issue
Block a user