From c0edcee7709035c33b47f238b2dd663a8e678c5f Mon Sep 17 00:00:00 2001 From: SeoulSKY Date: Thu, 4 Jan 2024 14:53:09 -0600 Subject: [PATCH] Fix docker compose configs --- README.md | 9 +++++---- docker-compose-dev.yml | 1 + docker-compose.yml | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d42b032..f7ca36f 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,12 @@ Create `.env` file, copy and paste all contents from `.env.example` file, and fi | CAI_TGT | ID for the target in the Character AI. Its value starts with `internal_id:` Follow the [guide](https://pycai.gitbook.io/welcome/api/values) to learn about it. | -### Running with [Docker](https://www.docker.com) (Recommended) +### Running with [Docker](https://www.docker.com) and [Docker Compose](https://docs.docker.com/compose/install/) (Recommended) Run the following command: ``` -docker run --rm -v ./logs:/app/logs --env-file=.env --name sorusora ghcr.io/seoulsky/sorusora:latest +docker-compose pull && docker-compose up ``` Optionally, you can add `-d` flag to run the docker container in detached mode. @@ -67,8 +67,9 @@ Optionally, you can add `-d` flag to run the docker container in detached mode. If you want to build the docker image by yourself and run it, use the following commands: ``` -docker build -t sorusora . -docker run --rm -v ./logs:/app/logs --env-file=.env --name sorusora sorusora +docker-compose -f docker-compose-dev.yml up --build +``` + ``` ### Running without [Docker](https://www.docker.com) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 562646c..a267342 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -3,6 +3,7 @@ version: "3" services: sorusora: build: . + container_name: sorusora volumes: - ./logs:/app/logs - ./cache:/app/cache diff --git a/docker-compose.yml b/docker-compose.yml index ec0accf..dd9797d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ version: "3" services: sorusora: image: ghcr.io/seoulsky/sorusora:latest + container_name: sorusora volumes: - ./logs:/app/logs - ./cache:/app/cache