Skip to content

Commit

Permalink
feat: add volume consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Dysta committed Nov 20, 2023
1 parent 29b669c commit 0cb861a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ RUN curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | tee /
RUN apt update && \
apt install -y playit

CMD ["playit", "-s"]
RUN mkdir -p /secrets

CMD ["playit", "--stdout", "--secret_path", "/secrets/playit.toml"]
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ Docker image to simply run the latest version of playit.gg tunnel service

## docker cli
```docker
docker run --name playitgg --restart unless-stopped dysta/playitgg
docker run --name playitgg --restart unless-stopped -v ./secrets:/secrets dysta/playitgg
```

## docker compose
```yaml
version: "3"
name: playitgg

services:
playitgg:
container_name: playitgg
image: dysta/playitgg
restart: unless-stopped
volumes:
- ./secrets:/secrets
```
### don't forget to check the logs to go to the claim url !!
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ services:
deploy:
restart_policy:
condition: unless-stopped
volumes:
- ./secrets:/secrets

0 comments on commit 0cb861a

Please sign in to comment.