Markdown-based site (blog, project documentation, etc) written with NodeJS.
Make your project documentation (or blog, or something else) with Markdown.
views/pages/
and (if it necessary) manage access to paths — and then your documentation is ready :) All new pages and directories will be indexed at next page loading.#link
to itkramdown
featuresMain pages folder
from configuration will be always on top in navigation on each page.Main pages folder
if you wont specify path or roles.This readme page after rendering:
And mobile version (iPhone 8 Plus):
Any *NIX OS is supported. No guarantees for Windows.
cd ~
mkdir mongodocker
cd mongodocker
export MONGODB_VERSION=4.0
curl -O --remote-name-all https://raw.githubusercontent.com/docker-library/mongo/master/$MONGODB_VERSION/{Dockerfile,docker-entrypoint.sh}
export DOCKER_USERNAME=username
chmod 755 ./docker-entrypoint.sh
docker-compose.yml
in your directory with following content:version: '2'
services:
mymongo:
image: mymongo
container_name: mymongo
restart: always
build:
context: .
dockerfile: ./Dockerfile
ports: ["27017:27017"]
volumes:
- '/etc/mongod.conf:/etc/mongod.conf'
command:
- '--config'
- '/etc/mongod.conf'
networks:
mongo_net:
ipv4_address: 172.22.0.2
networks:
mongo_net:
driver: bridge
ipam:
config:
- subnet: 172.22.0.2/24
gateway: 172.22.0.254
Where 172.22.0.2
is public IP for accessing database. You can change it.
/etc/mongod.conf
with following content:storage:
dbPath: /data/db
journal:
enabled: true
net:
port: 27017
bindIp: 127.0.0.1,172.22.0.2 # here you can see this IP again
docker-compose up -d
git clone https://github.com/petersamokhin/markdown-site
mongodb
network's name:docker network ls
You must see something like this:
NETWORK ID NAME DRIVER SCOPE
a117428b09c9 bridge bridge local
0b75179024f0 host host local
b1c67fcbca63 mongo-docker_mongo_net bridge local
df7d198ae6c2 none null local
Find network with name like mongo-docker_mongo_net
. It can be literally mongo-docker_mongo_net
.
Change the name of a mongo network at the end of this project's docker-compose.yml
. Now it's mongo-docker_mongo_net
.
Start project in the background:
docker-compose up -d
You can use local MongoDB which is not in docker container, in this case, you must do it by yourself.
Profit!
MIT
Copyright (c) 2018 PeterSamokhin
https://petersamokhin.com/