diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..1269488f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..5191aac9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +version: '3' + +############ +# +# Subspace - A simple WireGuard VPN server GUI +# +# https://github.com/subspacecloud/subspace +# + ############ + +services: + + subspace: + image: subspacecloud/subspace:latest + container_name: subspace + restart: always + cap_add: + - NET_ADMIN + network_mode: host + ports: + - "2143:2143/udp" + environment: + - SUBSPACE_HTTP_HOST=subspace.example.com + volumes: + # Mount your data volume somewhere else by changing "./data" to a different path + - "./data:/data" + # Mounts the wireguard binary, read only + - "/usr/bin/wg:/usr/bin/wg:ro" + + +