Skip to content

Commit

Permalink
Fix docker compose configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Jan 4, 2024
1 parent de6a843 commit c0edcee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
</details>

### 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.
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "3"
services:
sorusora:
build: .
container_name: sorusora
volumes:
- ./logs:/app/logs
- ./cache:/app/cache
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "3"
services:
sorusora:
image: ghcr.io/seoulsky/sorusora:latest
container_name: sorusora
volumes:
- ./logs:/app/logs
- ./cache:/app/cache
Expand Down

0 comments on commit c0edcee

Please sign in to comment.