Let's say you want to host domains first.com and second.com.
Create folders for their files:
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| Add the `replication` section to the mongod.conf file: | |
| ``` | |
| $cat /usr/local/etc/mongod.conf | |
| systemLog: | |
| destination: file | |
| path: /usr/local/var/log/mongodb/mongo.log | |
| logAppend: true | |
| storage: | |
| engine: mmapv1 |
| #!/bin/sh | |
| set -e | |
| set -o noglob | |
| # Usage: ./install.sh [options] | |
| # | |
| # Example: | |
| # Installing on first master node run: | |
| # ./install --num 3 --vip 192.168.2.10 --iface eth0 | |
| # Installing on other master nodes run: |
| # download ubuntu-cloud image | |
| # NOTE: ubuntu-server won't properly work with cloud-init for some reason | |
| wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img | |
| # NOTE: no need for sudo because we already login as root | |
| # install image customization tool | |
| apt update -y && apt install libguestfs-tools -y | |
| # install qemu-guest-agent inside of image |