From fb23f4079d56632ba086f70750c7129edddcadd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Latinier?= Date: Fri, 16 Feb 2018 23:51:47 +0100 Subject: [PATCH] add: some docker config --- Dockerfile | 15 +++++++++++++++ docker-compose.yml | 13 +++++++++++++ isso/demo/index.docker.html | 17 +++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 isso/demo/index.docker.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..22d50ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.6 +ARG ISSO_VER=0.10.6 + +RUN apt-get update && apt-get install -y python-dev \ + libffi-dev \ + sqlite3 \ + openssl \ + && pip install --no-cache "isso==${ISSO_VER}" \ + && rm -rf /tmp/* + +EXPOSE 8081 + +VOLUME /db /config + +CMD ["isso", "-c", "/config/isso.conf", "run"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6ac675d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '2.0' + +services: + isso: + build: ./ + environment: + - GID=1000 + - UID=1000 + volumes: + - /mnt/docker/isso/config:/config + - /mnt/docker/isso/db:/db + ports: + - 8081:8081 diff --git a/isso/demo/index.docker.html b/isso/demo/index.docker.html new file mode 100644 index 0000000..62b10eb --- /dev/null +++ b/isso/demo/index.docker.html @@ -0,0 +1,17 @@ + + + Isso Demo + + + +
+
+

Isso Demo

+ + + +
+
+
+ +