diff options
author | GDR! <gdr@gdr.name> | 2020-04-21 17:46:16 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2020-04-21 17:46:16 +0200 |
commit | e168cc7f097c964c9551de625db089a630893e3e (patch) | |
tree | de69bdcf858f6870943bb29f6fdaa4d04b3e402e | |
parent | 900d3300badd23734d7298596ef288d0e83a6a9e (diff) |
Docker readme
-rw-r--r-- | FAQ.md | 10 | ||||
-rw-r--r-- | gitversion.h | 2 | ||||
-rw-r--r-- | scripts/docker-compose.yaml | 16 |
3 files changed, 27 insertions, 1 deletions
@@ -51,6 +51,16 @@ There's, however, a chance that it will upgrade to UDP after a few minutes: | |||
51 | 51 | ||
52 | Wait until https://github.com/gjedeer/tuntox/issues/41 is implemented. This change should improve speed and latency in the 10 Mbit/s+ range. | 52 | Wait until https://github.com/gjedeer/tuntox/issues/41 is implemented. This change should improve speed and latency in the 10 Mbit/s+ range. |
53 | 53 | ||
54 | ## Can I run it with Docker? | ||
55 | |||
56 | I've made a [Docker image](https://gitlab.com/gjedeer/tuntox/container_registry/) by bundling a static build with Alpine Linux, but I don't think I'm going to remember to keep it up to date at all times. There's a [Dockerfile](Dockerfile) and [docker-compose.yaml](scripts/docker-compose.yaml). | ||
57 | |||
58 | The tox config is stored in `/data` and that's where you want to attach your volumes. | ||
59 | |||
60 | ``` | ||
61 | docker run -e 'TUNTOX_SHARED_SECRET=myassfeelsweird' -v /tmp/tt:/data -it registry.gitlab.com/gjedeer/tuntox:latest | ||
62 | ``` | ||
63 | |||
54 | ## Is your website a joke? | 64 | ## Is your website a joke? |
55 | 65 | ||
56 | You're a joke for not using NoScript. | 66 | You're a joke for not using NoScript. |
diff --git a/gitversion.h b/gitversion.h index bc45093..c50f156 100644 --- a/gitversion.h +++ b/gitversion.h | |||
@@ -1 +1 @@ | |||
#define GITVERSION "121acd73ddba12659713f27abef7524b9a0c6a48" | #define GITVERSION "900d3300badd23734d7298596ef288d0e83a6a9e" | ||
diff --git a/scripts/docker-compose.yaml b/scripts/docker-compose.yaml new file mode 100644 index 0000000..c5c172b --- /dev/null +++ b/scripts/docker-compose.yaml | |||
@@ -0,0 +1,16 @@ | |||
1 | version: "2" | ||
2 | services: | ||
3 | airsonic: | ||
4 | image: registry.gitlab.com/gjedeer/tuntox | ||
5 | container_name: tuntox | ||
6 | environment: | ||
7 | - TUNTOX_SHARED_SECRET=myassfeelsweird | ||
8 | volumes: | ||
9 | - /docker/tuntox:/data | ||
10 | ports: | ||
11 | - 33446:33446 | ||
12 | - 33446:33446/udp | ||
13 | - 33447:33447/udp | ||
14 | restart: always | ||
15 | |||
16 | |||