Skip to content

Commit

Permalink
Fix bug in docker-compose settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kekaadrenalin committed Jun 28, 2024
1 parent 4bff584 commit 75d44ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ RUN mkdir /data
FROM scratch

ENV PATH /bin
COPY --from=builder /data /data
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /dockhook/dockhook /dockhook
COPY --from=builder /data /dockhook/data

EXPOSE 8080

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Here is the Docker Compose file:
image: kekaadrenalin/dockhook:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/users.yml:/data/users.yml:rw
- ./data/webhooks.yml:/data/webhooks.yml:rw
- ./data/users.yml:/dockhook/data/users.yml:rw
- ./data/webhooks.yml:/dockhook/data/webhooks.yml:rw
... or ...
- ./some_data/:/dockhook/data/
ports:
- 8888:8080

Expand All @@ -54,11 +56,11 @@ container, for example, `./data/users.yml`). The file storage will be created in
Additionally, you need to create the first webhook interactively to manage the desired container. The available actions
are `START`, `STOP`, `RESTART`, and `PULL` (more details can be found in the Actions section):

$ docker run kekaadrenalin/dockhook create-webhook
$ docker run --volume=/var/run/docker.sock:/var/run/docker.sock:ro kekaadrenalin/dockhook create-webhook

You can also quickly filter only the containers started via `docker compose`:

$ docker run kekaadrenalin/dockhook create-webhook --docker-compose-only
$ docker run --volume=/var/run/docker.sock:/var/run/docker.sock:ro kekaadrenalin/dockhook create-webhook --docker-compose-only

### Actions

Expand Down

0 comments on commit 75d44ac

Please sign in to comment.