Merge pull request #212 from shuguet/main

fix: Fix permission errors when running Docker. Update Docker Compose & Docker instructions
This commit is contained in:
Eric Dubé 2024-04-02 02:02:46 -04:00 committed by GitHub
commit ac2e3e2873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,4 @@
.dockerignore
Dockerfile
node_modules
config
data
puter

3
.gitignore vendored
View File

@ -9,5 +9,4 @@ dist/
.env
# this is for jetbrain IDEs
.idea/
config
data
puter

View File

@ -45,13 +45,15 @@ This will launch Puter at http://localhost:4000 (or the next available port).
### Using Docker
```bash
docker run --rm -p 4100:4100 -v `pwd`/data:/opt/puter/app/volatile/runtime -v `pwd`/config:/opt/puter/app/volatile/config ghcr.io/heyputer/puter
mkdir puter && cd puter && mkdir -p puter/config puter/data && sudo chown -R 1000:1000 puter && docker run --rm -p 4100:4100 -v `pwd`/puter/config:/etc/puter -v `pwd`/puter/data:/var/puter ghcr.io/heyputer/puter
```
### Using Docker Compose
```bash
mkdir puter && cd puter
mkdir -p puter/config puter/data
sudo chown -R 1000:1000 puter
wget https://raw.githubusercontent.com/HeyPuter/puter/main/docker-compose.yml
docker compose up
```

View File

@ -15,8 +15,8 @@ services:
PUID: 1000
PGID: 1000
volumes:
- ./volatile/config:/opt/puter/app/volatile/config
- ./volatile/runtime:/opt/puter/app/volatile/runtime
- ./puter/config:/etc/puter
- ./puter/data:/var/puter
healthcheck:
test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
interval: 30s