diff --git a/Dockerfile b/Dockerfile index 7510890..1effcc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" diff --git a/README.md b/README.md index aa6ffbd..b97c79c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.