Debian Codegraph @

doc/source/install/docker.rst

raw
1 .. -*- rst -*-
2 .. Groonga Project
3
4 Docker
5 =======
6
7 This section describes how to install Groonga on Docker. You can
8 install Groonga image via DockerHub.
9
10 We distribute Alpine Linux Groonga docker image on DockerHub.
11
12 Pulling image
13 -------------
14
15 Install::
16
17 % docker pull groonga/groonga:latest
18
19 Then run it with the following command::
20
21 % docker run -v /mnt/db:/path/to/db groonga/groonga /mnt/db
22
23
24 With docker-compose
25 -------------------
26
27 Create docker-compose.yml as follows::
28
29 version: '3'
30 services:
31 groonga:
32 image: groonga/groonga
33 volumes:
34 - ./groonga:/mnt/db
35 ports:
36 - "10041:10041"
37 command: ["-n", "/mnt/db/data.db"]
38
39 Then run it with the following command::
40
41 % docker-compose run groonga