README.anastasis.md (2221B)
1 # nullptrderef/anastasis 2 3 An [Anastasis](https://anastasis.lu) Image 4 5 ## Tags 6 7 - [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. 8 - [builder](https://hub.docker.com/repository/docker/nullptrderef/anastasis/tags?page=&page_size=&ordering=&name=builder): The image used to build `latest`'s binaries. 9 10 ## Usage 11 12 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. 13 14 ### Docker CLI 15 16 An example usage via the docker CLI may look like: 17 18 `docker run -d -v './anastasis-config:/etc/anastasis' -p '127.0.0.1:9977:9977' nullptrderef/anastasis:latest` 19 20 ### Docker Compose 21 22 ```yml 23 services: 24 database: 25 container_name: anastasis-db 26 image: postgres:alpine 27 hostname: database 28 ports: 29 - 127.0.0.1:15432:5432 30 networks: 31 anastasis-pg-net: 32 ipv4_address: 172.168.111.10 33 environment: 34 - POSTGRES_DB=postgres 35 - POSTGRES_USERNAME=postgres 36 - POSTGRES_PASSWORD=password 37 - PGDATA=/var/lib/postgresql/data/ 38 volumes: 39 - ./anastasis-data/:/var/lib/postgresql/data/:rw 40 41 anastasis: 42 container_name: anastasis 43 image: nullptrderef/anastasis:latest 44 depends_on: 45 - database 46 networks: 47 - anastasis-pg-net 48 ports: 49 - 127.0.0.1:9977:9977 50 volumes: 51 - ./anastasis-config:/etc/anastasis 52 command: sh -c "while true; do sleep 1; done" 53 54 networks: 55 anastasis-pg-net: 56 driver: bridge 57 ipam: 58 driver: default 59 config: 60 - subnet: "172.168.111.0/24" 61 ``` 62 63 (Change the password ofc) 64 65 ### First Execution 66 67 Upon first execution, it will exit before getting anywhere, as you'll need to edit the configuation to specify the correct postgres URL. 68 69 The config file is created on this first execution. 70 71 ## Source 72 73 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