https://github.com/imprisonedmind/giggity-docker
A docker setup for giggity
https://github.com/imprisonedmind/giggity-docker
Last synced: 2 months ago
JSON representation
A docker setup for giggity
- Host: GitHub
- URL: https://github.com/imprisonedmind/giggity-docker
- Owner: imprisonedmind
- Created: 2024-10-23T08:43:05.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T13:25:44.000Z (7 months ago)
- Last Synced: 2024-10-25T15:57:40.393Z (7 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# giggity-docker
This is the parent docker setup that pulls the respective repos and builds
their images. This is intended to be used on a VPS and easily deployable.## Getting Started
1. Pull the Docker images:
```bash
docker pull
```## Sorting out MongoDB
1. Connect to Shell:
```bash
docker exec -it mongodb mongosh gigs
```
2. Check events Collection:
```bash
db.events.find()
db.events.countDocuments()
```
3. Backup just the gigs database:
```bash
docker exec mongodb-test sh -c 'mongodump --db gigs --archive' > gigs_backup.archive
```4. Restore just the gigs database:
```bash
docker exec -i mongodb-test sh -c 'mongorestore --db gigs --archive' < gigs_backup.
archive
```## Getting Certbot SSL certificates
1. Before starting the services, you'll need to get your initial SSL certificate:
```bash
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot
-d giggity.co.za
```