Skip to content

Instantly share code, notes, and snippets.

@slipo
Created January 30, 2018 23:00
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save slipo/f18f1a0b5e6adb7b0bf172b93379d891 to your computer and use it in GitHub Desktop.
Save slipo/f18f1a0b5e6adb7b0bf172b93379d891 to your computer and use it in GitHub Desktop.
Super simple docker compose file giving you a private NEO network and neon-wallet-db ... see comments.
version: '3'
services:
neon-wallet-db:
container_name: "neon-wallet-db"
image: slipoh/neon-wallet-db:latest
environment:
- MONGOURL=mongodb:27017
- MONGOPASS=neo
- MONGOUSER=gas
- MONGOAPP=test
- REDISTOGO_URL=redis://redis:6379
- PYTHONUNBUFFERED=0
- NET=private
- PRIVNET_SEEDS=http://neo-privnet:30333,http://neo-privnet:30334,http://neo-privnet:30335,http://neo-privnet:30336
ports:
- 5000:5000
links:
- mongodb:27017
- redis:6379
- neo-privnet:20333
- neo-privnet:20334
- neo-privnet:20335
- neo-privnet:20336
- neo-privnet:30333
- neo-privnet:30334
- neo-privnet:30335
- neo-privnet:30336
depends_on:
- mongodb
- redis
- neo-privnet
neo-privnet:
image: metachris/neo-privnet-with-gas
container_name: "neo-privnet"
ports:
- 20333:20333
- 20334:20334
- 20335:20335
- 20336:20336
- 30333:30333
- 30334:30334
- 30335:30335
- 30336:30336
redis:
image: redis:latest
container_name: "redis"
ports:
- 6379:6379
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
@StefanKern
Copy link

switching to "tutum/mongodb" fixed it for me. See https://gist.github.com/StefanKern/aad447bf13f1cffb1e486d404ada6e45

@slipo
Copy link
Author

slipo commented Feb 18, 2018

Just checked docker-compose pull and docker-compose up and everything's working fine for me. Asking @StefanKern to try the same.

@slipo
Copy link
Author

slipo commented Feb 18, 2018

@StefanKern is still having the issue. We believe it may affect Windows users. If you have the same issue, try out "tutum/mongodb" like in his gist above.

@vncoelho
Copy link

vncoelho commented Mar 4, 2018

It also seems to be a necessary step with Linux.

@slipo
Copy link
Author

slipo commented Mar 9, 2018

https://github.com/slipo/neo-scan-docker is another option if you want to run neoscan instead of neon-wallet-db ... They provide similar functionality but most dev is moving to neoscan.

@yurii-cnw
Copy link

Everythihg works fine, thanks. But, how to run neon-wallet-db or neoscan with non dockerized privatenet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment