This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x68Ec5FA9b9FDcE073F3be1C4988ED6cB552D93C2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0xd4ded3f0f9a30e74e3d186ff7644af9951d1ea53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library shelftest.handlers; | |
| import 'database.dart'; | |
| import 'user.dart'; | |
| import 'package:shelf_exception_response/exception.dart'; | |
| import 'package:shelf_bind/shelf_bind.dart'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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), |