summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dmt/Dockerfile19
-rw-r--r--docker-compose.yml16
2 files changed, 35 insertions, 0 deletions
diff --git a/dmt/Dockerfile b/dmt/Dockerfile
new file mode 100644
index 0000000..6d53838
--- /dev/null
+++ b/dmt/Dockerfile
@@ -0,0 +1,19 @@
+FROM alpine
+
+RUN apk --no-cache upgrade
+RUN apk --no-cache add \
+ bash \
+ docker-cli \
+ docker-compose \
+ git \
+ go
+
+WORKDIR /app
+ENV PATH="${PATH}:/app"
+ENV GOPATH="/usr/local"
+COPY . .
+
+RUN go install github.com/uriel/cgd@latest
+
+EXPOSE 80
+CMD ["cgd", "-a", ":80", "-c", "dmt"]
diff --git a/docker-compose.yml b/docker-compose.yml
index ea05646..f51b868 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,6 +8,22 @@ services:
- "data:/data"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
+ dmt:
+ build: "dmt"
+ restart: "always"
+ volumes:
+ - "data:/data:ro"
+ - "/var/run/docker.sock:/var/run/docker.sock:ro"
+ networks:
+ - "nginx-proxy-network"
+ environment:
+ VIRTUAL_HOST: "YOUR-DOMAIN.example"
+ LETSENCRYPT_HOST: "YOUR-DOMAIN.example"
+
volumes:
data:
name: "cychedelic_data"
+
+networks:
+ nginx-proxy-network:
+ external: true