parent
ad22816c2e
commit
e7cac22a7a
@ -1,28 +0,0 @@
|
|||||||
FROM debian:jessie
|
|
||||||
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
||||||
|
|
||||||
# To avoid problems with Dialog and curses wizards
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get -qy install python python-gevent python-msgpack wget
|
|
||||||
|
|
||||||
ENV USER zeronet
|
|
||||||
ENV UID 7000
|
|
||||||
ENV HOME /home/$USER
|
|
||||||
RUN useradd -u $UID -m -d $HOME -s /usr/sbin/nologin $USER
|
|
||||||
|
|
||||||
RUN echo "UTC" > /etc/timezone \
|
|
||||||
&& dpkg-reconfigure tzdata
|
|
||||||
|
|
||||||
USER $USER
|
|
||||||
WORKDIR $HOME
|
|
||||||
RUN wget -q https://github.com/HelloZeroNet/ZeroNet/archive/master.tar.gz \
|
|
||||||
&& tar xpzf master.tar.gz \
|
|
||||||
&& rm -f master.tar.gz \
|
|
||||||
&& cd ZeroNet-master \
|
|
||||||
&& mkdir log \
|
|
||||||
&& touch log/error.log
|
|
||||||
|
|
||||||
WORKDIR $HOME/ZeroNet-master
|
|
||||||
CMD python zeronet.py --ui_ip 0.0.0.0
|
|
@ -1,72 +1,25 @@
|
|||||||
Intro
|
Zeronet in Docker container.
|
||||||
=====
|
|
||||||
|
|
||||||
Running Zeronet in Docker container
|
# Build & Run
|
||||||
|
|
||||||
|
|
||||||
Run
|
|
||||||
===
|
|
||||||
```
|
|
||||||
docker run -d \
|
|
||||||
--name zeronet
|
|
||||||
-v zeronet_data:/data
|
|
||||||
-p 127.0.0.1:43110:43110
|
|
||||||
-p 15441:15441
|
|
||||||
my/zeronet
|
|
||||||
```
|
|
||||||
|
|
||||||
Access
|
|
||||||
======
|
|
||||||
```
|
```
|
||||||
http://127.0.0.1:43110
|
docker build -t andrey01/zeronet .
|
||||||
|
docker-compose run --rm --service-ports zeronet
|
||||||
```
|
```
|
||||||
|
|
||||||
Additional notes
|
# Access
|
||||||
================
|
|
||||||
|
|
||||||
If you are running your Web browser in the container, then you need to make
|
|
||||||
sure both containers are on the same network in order to access the ZeroNet WebUI.
|
|
||||||
|
|
||||||
```
|
|
||||||
docker network connect glue
|
|
||||||
docker network connect glue chrome
|
|
||||||
docker network connect glue zeronet
|
|
||||||
```
|
|
||||||
|
|
||||||
Running zeronet with docker-compose:
|
|
||||||
```
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
And access it via `http://zeronet:43110`
|
- http://127.0.0.1:43110
|
||||||
|
|
||||||
|
|
||||||
If you wish to build the image
|
|
||||||
```
|
|
||||||
docker build -t my/zeronet .
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
Tor proxy
|
|
||||||
---------
|
|
||||||
|
|
||||||
Additionally you can use this zeronet container as Tor proxy.
|
|
||||||
|
|
||||||
Firefox configuration
|
|
||||||
```
|
|
||||||
Manual proxy configuration
|
|
||||||
SOCKS Host: zeronet
|
|
||||||
SOCKS Port: 9050
|
|
||||||
SOCKS version: v5
|
|
||||||
[x] Remote DNS
|
|
||||||
No Proxy for: localhost, 127.0.0.1, zeronet
|
|
||||||
```
|
|
||||||
|
|
||||||
Backing up the data
|
# Backing up the data
|
||||||
-------------------
|
|
||||||
|
|
||||||
The following command will create a backup of your zeronet_data volume in your $HOME/zeronet_data.tar
|
The following command will create a backup of your ``zeronet_data`` volume in your current directory as ``zeronet_data.tar`` file:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run --rm -v zeronet_data:/data:ro -v $(pwd):/backup alpine:3.3 tar cvf /backup/zeronet_data.tar /data
|
docker run \
|
||||||
|
--rm \
|
||||||
|
-v zeronet_data:/data:ro \
|
||||||
|
-v $(pwd):/export \
|
||||||
|
alpine:3.7 \
|
||||||
|
tar cvf /export/zeronet_data.tar /data
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in new issue