Skip to content

Commit e136231

Browse files
committed
docker: add portainer howto
1 parent 98ffaad commit e136231

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

docs/examples/docker/portainer.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
the following setup appears to work (copyparty starts, accepts uploads, is able to persist config)
2+
3+
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)
4+
5+
before making the container, first `mkdir /etc/copyparty /srv/pub` which will be bind-mounts into the container
6+
7+
> both `/etc/copyparty` and `/srv/pub` are examples; you can change them if you'd like
8+
9+
put your copyparty config files directly into `/etc/copyparty` and the files to share inside `/srv/pub`
10+
11+
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)
12+
13+
14+
## in portainer:
15+
16+
```
17+
environments -> local -> containers -> add container:
18+
19+
name = copyparty-ac
20+
registry = docker hub
21+
image = copyparty/ac
22+
always pull = no
23+
24+
manual network port publishing:
25+
3923 to 3923 [TCP]
26+
27+
advanced -> command & logging:
28+
console = interactive & tty
29+
30+
advanced -> volumes -> map additional volume:
31+
container = /cfg [Bind]
32+
host = /etc/copyparty [Writable]
33+
34+
advanced -> volumes -> map additional volume:
35+
container = /w [Bind]
36+
host = /srv/pub [Writable]
37+
```
38+
39+
notes:
40+
41+
* `/cfg` is where copyparty expects to find its config files; `/etc/copyparty` is just an example mapping to that
42+
43+
* `/w` is where copyparty expects to find the folder to share; `/srv/pub` is just an example mapping to that
44+
45+
* the volumes must be bind-mounts to avoid permission issues (or so the theory goes)

scripts/docker/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ this example is also available as a podman-compatible [docker-compose yaml](http
2222
i'm not very familiar with containers, so let me know if this section could be better 🙏
2323

2424

25+
## portainer
26+
27+
* there is a [portainer howto](https://github.com/9001/copyparty/blob/hovudstraum/docs/examples/docker/portainer.md) which is mostly untested
28+
29+
2530
## configuration
2631

2732
> 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

0 commit comments

Comments
 (0)