github.com/amazechain/amc@v0.1.3/docker-compose.yml (about)

     1  version: '3'
     2  services:
     3    amc:
     4      image: amazechain/amc:latest
     5      command:
     6        - --data.dir
     7        - data
     8        - --log.level
     9        - info
    10        - --http
    11        - --http.port
    12        - '20012'
    13        - --http.addr
    14        - '0.0.0.0'
    15        - --ws
    16        - --ws.port
    17        - '20013'
    18        - --ws.addr
    19        - '0.0.0.0'
    20        - --metrics
    21        - --metrics.addr
    22        - '0.0.0.0'
    23        - --p2p.min-sync-peers
    24        - '1'
    25      networks:
    26        network1:
    27          ipv4_address: 172.18.0.2
    28      user: 1000:1000
    29      volumes:
    30        - amc:/home/amc/data
    31      ports:
    32        - "20012:20012"
    33        - "20013:20013"
    34  
    35    prometheus:
    36      image: prom/prometheus:v2.47.0
    37      user: ${DOCKER_UID:-1000}:${DOCKER_GID:-1000}
    38      command: --log.level=warn --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=150d --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
    39      ports: [ "9090:9090" ]
    40      volumes:
    41        - ${AMC_PROMETHEUS_CONFIG:-./deployments/prometheus/prometheus.yml}:/etc/prometheus/prometheus.yml
    42        - ${XDG_DATA_HOME:-~/.local/share}/amc-prometheus:/prometheus
    43      restart: unless-stopped
    44      networks:
    45        network1:
    46          ipv4_address: 172.18.0.9
    47  
    48    grafana:
    49      image: grafana/grafana:10.1.2
    50      user: "472:0" # required for grafana version >= 7.3
    51      ports: [ "3000:3000" ]
    52      volumes:
    53        - ${AMC_GRAFANA_CONFIG:-./deployments/prometheus/grafana.ini}:/etc/grafana/grafana.ini
    54        - ./deployments/prometheus/datasources:/etc/grafana/provisioning/datasources
    55        - ./deployments/prometheus/dashboards:/etc/grafana/provisioning/dashboards
    56        - ${XDG_DATA_HOME:-~/.local/share}/amc-grafana:/var/lib/grafana
    57      restart: unless-stopped
    58      networks:
    59        network1:
    60          ipv4_address: 172.18.0.10
    61  
    62  networks:
    63    network1:
    64      ipam:
    65        driver: default
    66        config:
    67          - subnet: 172.18.0.0/24
    68  volumes:
    69    amc:
    70      driver: local