feat(database): unify recipe host ports and add Consul, Elasticsearch
This commit is contained in:
49 files changed
+522
-135
No files matched your search
@@ -9,7 +9,7 @@ services:
|
||||
# Keep the password in container env so CMD-SHELL can quote it safely.
|
||||
REDIS_PASSWORD: "${DB_PASSWORD:-123456}"
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-6380}:6379"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-10500}:6379"
|
||||
volumes:
|
||||
- data:/data
|
||||
healthcheck:
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"platforms": ["linux/amd64"],
|
||||
"service": "database",
|
||||
"defaultPort": 6379,
|
||||
"connection": { "host": "127.0.0.1", "port": 6380, "password": "123456", "database": 0 },
|
||||
"connection": { "host": "127.0.0.1", "port": 10500, "password": "123456", "database": 0 },
|
||||
"hostPorts": { "DB_PORT": 10500 },
|
||||
"shell": ["redis-cli", "-a", "${DB_PASSWORD}"],
|
||||
"smoke": { "steps": [{ "name": "seed smoke key", "command": ["redis-cli", "-a", "${DB_PASSWORD}", "SET", "dbx:smoke", "DBX smoke"], "expect": "OK" }, { "name": "read smoke key", "command": ["redis-cli", "-a", "${DB_PASSWORD}", "GET", "dbx:smoke"], "expect": "DBX smoke" }] }
|
||||
}
|
||||
Reference in new issue
Block a user