Skip to content

Instantly share code, notes, and snippets.

version: '3'
services:
iri:
# restart: unless-stopped
container_name: iri
image: iotaledger/iri:latest
# Override default CMD to remove the API restrictions such as addNeighbors.
command: /usr/bin/java -XX:+DisableAttachMechanism -Xmx8g -Xms256m -Dlogback.configurationFile=/iri/conf/logback.xml -Djava.net.preferIPv4Stack=true -jar iri.jar -p 14265 -u 14777 -t 15777 --remote
volumes:
# Give a proper location on host server such as:
0x68Ec5FA9b9FDcE073F3be1C4988ED6cB552D93C2
0xd4ded3f0f9a30e74e3d186ff7644af9951d1ea53
library shelftest.routes;
import 'handlers2.dart' as handler;
import 'package:shelf_route/shelf_route.dart';
import 'package:shelf_bind/shelf_bind.dart';
Router routes = new Router(handlerAdapter: handlerAdapter())
..get('/user/{userid}', handler.getUser)
..put('/user/{userid}/name', handler.setUserName);
library shelftest.handlers;
import 'database.dart';
import 'user.dart';
import 'package:shelf_exception_response/exception.dart';
import 'package:shelf_bind/shelf_bind.dart';
library shelftest.routes;
import 'handlers.dart' as handler;
import 'package:shelf_route/shelf_route.dart';
Router routes = new Router()
..addAll((Router r) => r
..get('/', handler.getUser)
..put('/name', handler.setUserName),