mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
docker: add portainer howto
This commit is contained in:
parent
98ffaadf52
commit
e136231c8e
45
docs/examples/docker/portainer.md
Normal file
45
docs/examples/docker/portainer.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
the following setup appears to work (copyparty starts, accepts uploads, is able to persist config)
|
||||
|
||||
tested on debian 12 using [portainer-ce](https://docs.portainer.io/start/install-ce/server/docker/linux) with [docker-ce](https://docs.docker.com/engine/install/debian/) as root (not rootless)
|
||||
|
||||
before making the container, first `mkdir /etc/copyparty /srv/pub` which will be bind-mounts into the container
|
||||
|
||||
> both `/etc/copyparty` and `/srv/pub` are examples; you can change them if you'd like
|
||||
|
||||
put your copyparty config files directly into `/etc/copyparty` and the files to share inside `/srv/pub`
|
||||
|
||||
on first startup, copyparty will create a subfolder inside `/etc/copyparty` called `copyparty` where it puts some runtime state; for example replacing `/etc/copyparty/copyparty/cert.pem` with another TLS certificate is a quick and dirty way to get valid HTTPS (if you really want copyparty to handle that and not a reverse-proxy)
|
||||
|
||||
|
||||
## in portainer:
|
||||
|
||||
```
|
||||
environments -> local -> containers -> add container:
|
||||
|
||||
name = copyparty-ac
|
||||
registry = docker hub
|
||||
image = copyparty/ac
|
||||
always pull = no
|
||||
|
||||
manual network port publishing:
|
||||
3923 to 3923 [TCP]
|
||||
|
||||
advanced -> command & logging:
|
||||
console = interactive & tty
|
||||
|
||||
advanced -> volumes -> map additional volume:
|
||||
container = /cfg [Bind]
|
||||
host = /etc/copyparty [Writable]
|
||||
|
||||
advanced -> volumes -> map additional volume:
|
||||
container = /w [Bind]
|
||||
host = /srv/pub [Writable]
|
||||
```
|
||||
|
||||
notes:
|
||||
|
||||
* `/cfg` is where copyparty expects to find its config files; `/etc/copyparty` is just an example mapping to that
|
||||
|
||||
* `/w` is where copyparty expects to find the folder to share; `/srv/pub` is just an example mapping to that
|
||||
|
||||
* the volumes must be bind-mounts to avoid permission issues (or so the theory goes)
|
|
@ -22,6 +22,11 @@ this example is also available as a podman-compatible [docker-compose yaml](http
|
|||
i'm not very familiar with containers, so let me know if this section could be better 🙏
|
||||
|
||||
|
||||
## portainer
|
||||
|
||||
* there is a [portainer howto](https://github.com/9001/copyparty/blob/hovudstraum/docs/examples/docker/portainer.md) which is mostly untested
|
||||
|
||||
|
||||
## configuration
|
||||
|
||||
> this section basically explains how the [docker-compose yaml](https://github.com/9001/copyparty/blob/hovudstraum/docs/examples/docker/basic-docker-compose) works, so you may look there instead
|
||||
|
|
Loading…
Reference in a new issue