yacy_search_server/docker/Readme.md

68 lines
1.6 KiB
Markdown
Raw Normal View History

2016-05-13 14:32:54 +02:00
# Yacy Docker image from latest sources
2016-05-17 22:07:46 +02:00
[![Deploy to Docker Cloud](https://files.cloud.docker.com/images/deploy-to-dockercloud.svg)](https://cloud.docker.com/stack/deploy/?repo=https://github.com/luccioman/yacy_search_server/tree/docker/docker)
2016-05-17 21:58:24 +02:00
## Getting built image from Docker Hub
2016-05-13 14:32:54 +02:00
docker pull luccioman/yacy
Repository URL : (https://hub.docker.com/r/luccioman/yacy/)
2016-05-17 21:58:24 +02:00
## Building image yourself
2016-05-13 14:32:54 +02:00
Using yacy_search_server/docker/Dockerfile :
cd yacy_search_server/docker
docker build .
2016-05-17 21:58:24 +02:00
## Default admin account
2016-05-13 14:32:54 +02:00
login : admin
password : docker
You should modify this default password with page /ConfigAccounts_p.html when exposing publicly your YaCy container.
2016-05-17 21:58:24 +02:00
## Usage
2016-05-13 14:32:54 +02:00
2016-05-17 21:58:24 +02:00
### First start
2016-05-13 14:32:54 +02:00
2016-05-17 21:58:24 +02:00
#### Most basic
2016-05-13 14:32:54 +02:00
docker run luccioman/yacy
YaCy web interface is then exposed at http://[container_ip]:8090.
You can retrieve the container IP address with `docker inspect`.
2016-05-17 21:58:24 +02:00
#### Easier to handle
2016-05-13 14:32:54 +02:00
docker run --name yacy -p 8090:8090 luccioman/yacy
--name option allow easier management of your container (without it, docker automatically generate a new name at each startup).
-p option map host port and container port, allowing web interface access through the usual http://localhost:8090.
2016-05-17 21:58:24 +02:00
#### With persistent data volume
2016-05-13 14:32:54 +02:00
docker run -v [your_host/data/directory]:/opt/yacy_search_server/DATA luccioman/yacy
This allow your container to reuse a data directory form the host.
2016-05-17 21:58:24 +02:00
#### As background process
2016-05-13 14:32:54 +02:00
docker run -d luccioman/yacy
2016-05-17 21:58:24 +02:00
### Next starts
2016-05-13 14:32:54 +02:00
2016-05-17 21:58:24 +02:00
#### As attached process
2016-05-13 14:32:54 +02:00
docker start -a yacy
2016-05-17 21:59:29 +02:00
#### As background process
2016-05-13 14:32:54 +02:00
docker start yacy
2016-05-17 21:58:24 +02:00
### Shutdown
2016-05-13 14:32:54 +02:00
2016-05-17 21:58:24 +02:00
* Use "Shutdown" button in administration web interface