23 lines
691 B
YAML
23 lines
691 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Docker volume for Monero blockchain data
|
|
community.docker.docker_volume:
|
|
volume_name: monerod-node-blockchain
|
|
state: present
|
|
|
|
- name: Deploy Monero node Docker container
|
|
community.docker.docker_container:
|
|
name: monerod_node
|
|
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
|
|
restart: "{{ stop is undefined or not stop }}"
|
|
image: sethsimmons/simple-monerod:{{ services.monerod.version }}
|
|
restart_policy: always
|
|
networks:
|
|
- name: services
|
|
aliases:
|
|
- monerod
|
|
volumes:
|
|
- monerod-node-blockchain:/home/monero/.bitmonero:rw
|
|
published_ports:
|
|
- 18080:18080/tcp
|