This will guide you through setting up a replica set in a docker environment using.
- Docker Compose
- MongoDB Replica Sets
- Mongoose
- Mongoose Transactions
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| #!/bin/bash | |
| #this script sets up a git user, installs gitea, a systemd service, and an nginx subdomain redirect | |
| #inspired by https://golb.hplar.ch/2018/06/self-hosted-git-server.html | |
| DOMAIN=EXAMPLE.COM #Please put your actual domain here | |
| GIT_HOME=/opt/git #/home/git in the above tutorial | |
| GITEA_PORT=3000 #default, but you can change it | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "you need to be root" | |
| exit 1 |
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!