File: getting-started.rst

package info (click to toggle)
xandikos 0.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,916 kB
  • sloc: python: 7,607; xml: 583; sh: 136; makefile: 59
file content (57 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.. _getting-started:

Getting Started
===============

Xandikos can either be run in a container (e.g. in docker or Kubernetes) or
outside of a container.

It is recommended that you run it behind a reverse proxy, since Xandikos by
itself does not provide authentication support. See :ref:`reverse-proxy` for
details.

Running from systemd
--------------------

Xandikos supports socket activation through systemd. To use systemd, run something like:

.. code-block:: shell

   cp examples/xandikos.{socket,service} /etc/systemd/system
   systemctl daemon-reload
   systemctl enable xandikos.socket

Running from docker
-------------------

There is a docker image that gets regularly updated at
``ghcr.io/jelmer/xandikos``.

If you use docker-compose, see the example configuration in
``examples/docker-compose.yml``.

To run in docker interactively, try something like:

.. code-block:: shell

   mkdir /tmp/xandikos
   docker run -it -v /tmp/xandikos:/data -p8000:8000 ghcr.io/jelmer/xandikos

The following environment variables are supported by the docker image:

 * ``CURRENT_USER_PRINCIPAL``: path to current user principal; defaults to "/$USER"
 * ``AUTOCREATE``: whether to automatically create missing directories ("defaults", "empty")
 * ``ROUTE_PREFIX``: HTTP prefix under which Xandikos should run

Running from kubernetes
-----------------------

Here is an example configuration for running Xandikos in kubernetes:

.. literalinclude:: ../../examples/xandikos.k8s.yaml
   :language: yaml

If you're using the prometheus operator, you may want also want to use this service monitor:

.. literalinclude:: ../../examples/xandikos-servicemonitor.k8s.yaml
   :language: yaml