mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Fix permission errors when running Docker. Update Docker Compose & Docker instructions
This commit is contained in:
parent
0651aab1be
commit
0e033348f0
@ -1,5 +1,4 @@
|
|||||||
.dockerignore
|
.dockerignore
|
||||||
Dockerfile
|
Dockerfile
|
||||||
node_modules
|
node_modules
|
||||||
config
|
puter
|
||||||
data
|
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,5 +9,4 @@ dist/
|
|||||||
.env
|
.env
|
||||||
# this is for jetbrain IDEs
|
# this is for jetbrain IDEs
|
||||||
.idea/
|
.idea/
|
||||||
config
|
puter
|
||||||
data
|
|
@ -45,13 +45,15 @@ This will launch Puter at http://localhost:4000 (or the next available port).
|
|||||||
### Using Docker
|
### Using Docker
|
||||||
|
|
||||||
```bash
|
```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 config data && sudo chown -R 1000:1000 config data && 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
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using Docker Compose
|
### Using Docker Compose
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir puter && cd puter
|
mkdir puter && cd puter
|
||||||
|
mkdir data config
|
||||||
|
sudo chown -R 1000:1000 config data
|
||||||
wget https://raw.githubusercontent.com/HeyPuter/puter/main/docker-compose.yml
|
wget https://raw.githubusercontent.com/HeyPuter/puter/main/docker-compose.yml
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
@ -15,8 +15,8 @@ services:
|
|||||||
PUID: 1000
|
PUID: 1000
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
volumes:
|
volumes:
|
||||||
- ./volatile/config:/opt/puter/app/volatile/config
|
- ./puter/config:/opt/puter/app/volatile/config
|
||||||
- ./volatile/runtime:/opt/puter/app/volatile/runtime
|
- ./puter/runtime:/opt/puter/app/volatile/runtime
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
|
test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
Loading…
Reference in New Issue
Block a user