Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

FROM haproxy:2.9.11-alpine3.20
FROM docker.io/library/haproxy:2.9.11-alpine3.20

USER root

Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ To build image locally use:
docker build -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./
```

<details>
<summary>Podman</summary>

```bash
podman build --format=docker -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./
```
</details>

Deploy image(for `nextcloud-docker-dev`):

```shell
Expand Down Expand Up @@ -160,6 +168,21 @@ docker run -e NC_HAPROXY_PASSWORD="some_secure_password" \
--privileged -d nextcloud-appapi-dsp:latest
```

<details>
<summary>Podman rootless</summary>

You can use this when Nextcloud is installed in Docker(for example), and the DSP will run on the host network on Podman.

```bash
podman run -e NC_HAPROXY_PASSWORD="some_secure_password" \
-e BIND_ADDRESS="172.17.0.1" \
-v /run/user/1000/podman/podman.sock:/var/run/docker.sock \
-v `pwd`/certs/cert.pem:/certs/cert.pem \
--name nextcloud-appapi-dsp -h nextcloud-appapi-dsp --net host \
--privileged -d nextcloud-appapi-dsp:latest
```
</details>

After that create daemon in AppAPI from the Docker Socket Proxy template, with next parameters:
1. Host: `host.docker.internal:2375`
2. Tick `https` checkbox.
Expand Down