summaryrefslogtreecommitdiff
path: root/packaging/docker-alpine/README.anastasis.md
blob: 6e01cf7e0789a665d313d7692910743dfc006bc9 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# nullptrderef/anastasis

An [Anastasis](https://anastasis.lu) Image

## Tags

- [latest](https://hub.docker.com/repository/docker/nullptrderef/anastasis/tags?page=&page_size=&ordering=&name=latest): An image built form [Anastasis Master](https://git.taler.net/anastasis.git) at some point in time, hopefully recently.
- [builder](https://hub.docker.com/repository/docker/nullptrderef/anastasis/tags?page=&page_size=&ordering=&name=builder): The image used to build `latest`'s binaries.

## Usage

The Image exposes a `/etc/anastasis` volume, which contains the anastasis configuration. By default, Anastasis listens on port `9977` in the container, however this behaviour can natuarlly be changed.

### Docker CLI

An example usage via the docker CLI may look like:

`docker run -d -v './anastasis-config:/etc/anastasis' -p '127.0.0.1:9977:9977' nullptrderef/anastasis:latest`

### Docker Compose

```yml
services:
  database:
    container_name: anastasis-db
    image: postgres:alpine
    hostname: database
    ports:
      - 127.0.0.1:15432:5432
    networks:
      anastasis-pg-net:
        ipv4_address: 172.168.111.10
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_USERNAME=postgres
      - POSTGRES_PASSWORD=password
      - PGDATA=/var/lib/postgresql/data/
    volumes:
      - ./anastasis-data/:/var/lib/postgresql/data/:rw

  anastasis:
    container_name: anastasis
    image: nullptrderef/anastasis:latest
    depends_on:
      - database
    networks:
      - anastasis-pg-net
    ports:
      - 127.0.0.1:9977:9977
    volumes:
      - ./anastasis-config:/etc/anastasis
    command: sh -c "while true; do sleep 1; done"

networks:
  anastasis-pg-net:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: "172.168.111.0/24"
```

(Change the password ofc)

### First Execution

Upon first execution, it will exit before getting anywhere, as you'll need to edit the configuation to specify the correct postgres URL.

The config file is created on this first execution.

## Source

This image was packaged from [deployment.git:packaging/docker-alpine](https://git.taler.net/deployment.git/tree/packaging/docker-alpine). It is licensed under the AGPL-3.0-OR-LATER