master
Andy 7 years ago
parent 0cda6c5ade
commit ad22816c2e
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC

@ -1,12 +1,12 @@
# docker build -t my/zeronet . # docker build -t my/zeronet .
# docker run -d --name zeronet -v ~/.zeronetdata:/data -p 43110:43110 my/zeronet # docker run -d --name zeronet -v ~/.zeronetdata:/data -p 43110:43110 my/zeronet
FROM alpine:3.3 FROM alpine:latest
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com> MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \ RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& apk update \ && apk update \
&& apk add py-gevent@testing py-msgpack@testing wget ca-certificates && apk add py-gevent@testing py-msgpack@testing wget ca-certificates python
ENV USER zeronet ENV USER zeronet
ENV UID 7000 ENV UID 7000
@ -19,7 +19,7 @@ ENV DATA /data
RUN adduser -D -u $UID -h $HOME -s /bin/true $USER RUN adduser -D -u $UID -h $HOME -s /bin/true $USER
# Optionall you may want to enable Tor in order to anonymize the traffic # Optionally you may want to enable Tor in order to anonymize the traffic
RUN apk add tor@testing RUN apk add tor@testing
RUN echo -e "ControlPort 9051\nSocksListenAddress 0.0.0.0" > /etc/tor/torrc RUN echo -e "ControlPort 9051\nSocksListenAddress 0.0.0.0" > /etc/tor/torrc
# RUN echo -e "ControlPort 9051" > /etc/tor/torrc # RUN echo -e "ControlPort 9051" > /etc/tor/torrc

@ -7,7 +7,12 @@ Running Zeronet in Docker container
Run Run
=== ===
``` ```
docker run -d --name zeronet -v zeronet_data:/data -p 43110:43110 -p 15441:15441 my/zeronet docker run -d \
--name zeronet
-v zeronet_data:/data
-p 127.0.0.1:43110:43110
-p 15441:15441
my/zeronet
``` ```
Access Access
@ -19,14 +24,16 @@ http://127.0.0.1:43110
Additional notes Additional notes
================ ================
If you already have your Web browser running in a container (e.g. Firefox in If you are running your Web browser in the container, then you need to make
the `firefox_net` network), then you can run Zeronet container in the sure both containers are on the same network in order to access the ZeroNet WebUI.
following way
``` ```
docker run -d --name zeronet -v zeronet_data:/data --net firefox_net -p 15441:15441 my/zeronet docker network connect glue
docker network connect glue chrome
docker network connect glue zeronet
``` ```
With docker-compose it is even simpler Running zeronet with docker-compose:
``` ```
docker-compose up -d docker-compose up -d
``` ```

@ -5,9 +5,12 @@ volumes:
services: services:
zeronet: zeronet:
container_name: zeronet
image: andrey01/zeronet image: andrey01/zeronet
build: .
network_mode: bridge network_mode: bridge
ports: ports:
- 15441:15441 - 15441:15441
- 127.0.0.1:43110:43110
volumes: volumes:
- data:/data - data:/data

Loading…
Cancel
Save