DB and Redis
Setup the base Database and a Redis cache server
Repository
git clone https://github.com/Conv-AI/DB-Onprem-SetupDB Docker Command
$ cd DB-Onprem-Setup/
$ sudo docker run -d --name convai_postgres \
-p 0.0.0.0:5432:5432 -e POSTGRES_DB=convai_db \
-e POSTGRES_USER=convai_user \
-e POSTGRES_PASSWORD=<password> \
-e POSTGRES_INITDB_ARGS="--encoding=UTF8 --lc-collate=C --lc-ctype=C" \
-v convai_db_data:/var/lib/postgresql/data \
-v ./init-scripts:/docker-entrypoint-initdb.d \
--health-cmd="pg_isready -U convai_user -d convai_db" \
--health-interval=10s --health-timeout=5s --health-retries=5 \
--restart=unless-stopped \
postgres:15Redis Docker Command [Optional]
Last updated