Skip to content
Open
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
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ sysctl -w net.ipv6.conf.all.forwarding=1

Follow the official Docker install instructions: [Get Docker CE for Ubuntu](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/)

#### Run directly with Docker

Make sure to change the `--env SUBSPACE_HTTP_HOST` to your publicly accessible domain name.

```bash
Expand All @@ -155,6 +157,32 @@ $ sudo docker logs subspace

<log output>

```
#### Run with docker Compose

```yaml
# docker-compose.yml
version: "3.5"
services:
subspace:
image: subspacecloud/subspace:latest
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- ./data:/data
- /usr/bin/wg:/usr/bin/wg
environment:
- NAMESERVER=1.1.1.1
- SUBSPACE_HTTP_HOST=subspace.example.com
- SUBSPACE_HTTP_INSECURE=true
- SUBSPACE_LETSENCRYPT=false
- SUBSPACE_WG_PORT=51820

```
```bash
# Bring services UP
docker compose up
```

#### Updating the container image
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fi
cat <<WGSERVER >/data/wireguard/server.conf
[Interface]
PrivateKey = $(cat /data/wireguard/server.private)
ListenPort = 51820
ListenPort = ${SUBSPACE_WG_PORT:-51820}

WGSERVER
cat /data/wireguard/peers/*.conf >>/data/wireguard/server.conf
Expand Down