add: some docker config
This commit is contained in:
parent
0ff39017c6
commit
fb23f4079d
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -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"]
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -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
|
17
isso/demo/index.docker.html
Normal file
17
isso/demo/index.docker.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Isso Demo</title>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div id="page" style="text-align:center;">
|
||||
<div id="wrapper" style="width: 900px; text-align: left; margin-left: auto; margin-right: auto;">
|
||||
<h2><a href="index.docker.html">Isso Demo</a></h2>
|
||||
|
||||
<script src="http://localhost:8081/js/embed.min.js"></script>
|
||||
|
||||
<section id="isso-thread" data-title="Isso Test"></section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user