mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-21 12:20:08 +08:00
finally hooked up redis insights to redis
This commit is contained in:
@@ -10,6 +10,42 @@
|
||||
state: present
|
||||
driver: bridge
|
||||
|
||||
- name: Set up Redis
|
||||
community.docker.docker_container:
|
||||
name: redis
|
||||
#name: oasst-redis
|
||||
image: redis
|
||||
state: started
|
||||
restart_policy: always
|
||||
network_mode: oasst
|
||||
ports:
|
||||
- 6379:6379
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
command: redis-server /usr/local/etc/redis/redis.conf
|
||||
volumes:
|
||||
- "./redis.conf:/usr/local/etc/redis/redis.conf"
|
||||
|
||||
- name: Set up Redis Insights
|
||||
community.docker.docker_container:
|
||||
name: redis-insights
|
||||
#name: oasst-redis-insights
|
||||
image: redislabs/redisinsight:latest
|
||||
#command: pip install redis-cli python entry.pyc
|
||||
state: started
|
||||
restart_policy: always
|
||||
network_mode: oasst
|
||||
ports:
|
||||
- 8001:8001
|
||||
env:
|
||||
REDIS_URL: redis://redis:6379
|
||||
REDIS_HOST: redis
|
||||
#environment:
|
||||
#- REDIS_URL=redis://redis:6379
|
||||
|
||||
- name: Create postgres containers
|
||||
community.docker.docker_container:
|
||||
name: "{{ item.name }}"
|
||||
|
||||
Reference in New Issue
Block a user