Skip to content

Commit

Permalink
Adjust docker compose, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Aug 15, 2024
1 parent 569757a commit b721440
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,9 @@
To run the bot you'll need docker compose.

- Copy or rename `example.env` in `/` to `.env` and fill out the fields.
- Start the postgres container and create a database which you configured in `.env`
- Build and start bot container

Build docker image
```bash
docker build -t substiify .
```

Run docker
`-d`: runs container in the background
```bash
docker-compose up -d
```
- Start the postgres container and create a database which you configured in `.env` -> `DB_NAME`
- Start the bot with `docker-compose up -d`

## Development

Increment the version in `pyproject.toml` and `core/__init__.py`.
6 changes: 4 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ services:
ports:
- "2333:2333"

bot:
build: .
substiify:
image: ghcr.io/jackra1n/substiify-v2:release
container_name: substiify
depends_on:
- postgres
restart: unless-stopped
volumes:
- .env:/bot/.env
- ./logs:/bot/logs
- /etc/localtime:/etc/localtime:ro

0 comments on commit b721440

Please sign in to comment.