infra-role-geth-exporter/templates/docker-compose.yml.j2
Jakub Sokołowski b187f16ad9
refactor to use Docker Compose
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-25 19:39:43 +01:00

19 lines
461 B
Django/Jinja

---
version: '3.7'
services:
metrics:
container_name: '{{ geth_expo_cont_name }}'
image: '{{ geth_expo_cont_image }}'
user: 'root'
restart: 'always'
entrypoint: 'geth_exporter'
ports:
- '{{ geth_expo_cont_port }}:{{ geth_expo_cont_port }}/tcp'
volumes:
- '{{ geth_expo_source_data_path | mandatory }}:/data'
command: |
-ipc /data/geth.ipc
-port {{ geth_expo_cont_port }}
depends_on:
- 'geth'