Skip to content

Commit

Permalink
fix: symlink database to /data/ooye.db so that it's easier to creat…
Browse files Browse the repository at this point in the history
…e a docker volume for it.
  • Loading branch information
zicklag committed Mar 24, 2024
1 parent ccd5810 commit 7b58c99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ RUN npm i

RUN adduser ooye -Du 1001
RUN chown -R ooye /app
RUN ln -s /data/ooye.db /app/db/ooye.db
RUN mkdir /data
USER ooye

ENV DISCORD_TOKEN="notarealdiscordtoken"
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sudo chown 1001:1001 ooye.db
in the `environment` section.
Note the `ADMIN_INVITE` section, in which you should specify the matrix ID of the user that you want
to have admin access on the matrix spaces and channels that the bot creates and bridges.
```yaml
```yaml
services:
ooye:
image: ghcr.io/katharostech/ooye:master
Expand All @@ -57,8 +57,11 @@ services:
ports:
- 6693:6693
volumes:
- ./ooye.db:/app/db/ooye.db
```
- ooye-data:/data

volumes:
ooye-data:
```
3. In the same folder as your `docker-compose.yml` run `docker compose up -d`.
4. You'll see the container download and start up. It will exit immediately after startup, that is
expected.
Expand Down

0 comments on commit 7b58c99

Please sign in to comment.