mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
Add 'redis-commander/' from commit '497cb166813972e4e2303e50fe75726b43c6494a'
git-subtree-dir: redis-commander git-subtree-mainline:bb126f221e
git-subtree-split:497cb16681
This commit is contained in:
commit
30663abe62
4 changed files with 44 additions and 0 deletions
3
redis-commander/Dockerfile
Normal file
3
redis-commander/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM rediscommander/redis-commander
|
||||
COPY entrypoint.sh /
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
12
redis-commander/docker-compose.yml
Normal file
12
redis-commander/docker-compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
version: "3"
|
||||
services:
|
||||
redis:
|
||||
image: redis:alpine
|
||||
app:
|
||||
build: "."
|
||||
ports: ["8081:8081"]
|
||||
links: [redis]
|
||||
environment:
|
||||
- FLY_REDIS_CACHE_URL=redis://redis
|
||||
- HTTP_USER
|
||||
- HTTP_PASSWORD
|
8
redis-commander/entrypoint.sh
Executable file
8
redis-commander/entrypoint.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
export PORT=${PORT:-8080}
|
||||
REDIS_HOST=`node -p "new URL('${FLY_REDIS_CACHE_URL}').hostname"`
|
||||
REDIS_PORT=`node -p "new URL('${FLY_REDIS_CACHE_URL}').port"`
|
||||
REDIS_PASSWORD=`node -p "new URL('${FLY_REDIS_CACHE_URL}').password"`
|
||||
export REDIS_HOST=${REDIS_HOST:-localhost} REDIS_PORT=${REDIS_PORT:-6379} REDIS_PASSWORD
|
||||
/redis-commander/docker/entrypoint.sh "$@"
|
21
redis-commander/fly.toml
Normal file
21
redis-commander/fly.toml
Normal file
|
@ -0,0 +1,21 @@
|
|||
app = "redis-commander-example"
|
||||
|
||||
[[services]]
|
||||
internal_port = 8080
|
||||
protocol = "tcp"
|
||||
|
||||
[services.concurrency]
|
||||
hard_limit = 25
|
||||
soft_limit = 20
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["http"]
|
||||
port = "80"
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = "443"
|
||||
|
||||
[[services.tcp_checks]]
|
||||
interval = 10000
|
||||
timeout = 2000
|
Loading…
Add table
Reference in a new issue