mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-07 05:31:17 +01:00
docker-images/docker: restructuring
This commit is contained in:
40
wiki/docker/xy2z_-_pinedocs.md
Normal file
40
wiki/docker/xy2z_-_pinedocs.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# xy2z - pinedocs
|
||||
|
||||
This is a [Docker](/wiki/docker.md) container for the file viewer pinedocs.
|
||||
The official container and documentation was made by
|
||||
[xy2z](https://hub.docker.com/r/xy2z/pinedocs).
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the file `rebuild.sh`.
|
||||
Change the settings according to your needs and run `./rebuild.sh` afterwards.
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Outside mount/volume name | Container mount | Description |
|
||||
| ------------------------- | --------------- | -------------------- |
|
||||
| `pinedocs` | `/data` | storage for pinedocs |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `80` | `80` | TCP | WebUI |
|
||||
|
||||
## rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
docker stop pinedocs
|
||||
docker rm pinedocs
|
||||
docker pull xy2z/pinedocs
|
||||
docker run --name pinedocs \
|
||||
--restart unless-stopped \
|
||||
-p 80:80 \
|
||||
-v pinedocs:/data \
|
||||
-d xy2z/pinedocs
|
||||
```
|
||||
Reference in New Issue
Block a user