Skip to content

Instantly share code, notes, and snippets.

View gtljaymodi's full-sized avatar
🎯
Focusing

Jay Modi gtljaymodi

🎯
Focusing
View GitHub Profile
version: '3.3'
services:
# RabbitMQ - Broker
rabbit:
hostname: rabbitmq
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
@gtljaymodi
gtljaymodi / mysql-docker.sh
Created February 3, 2020 13:42 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@gtljaymodi
gtljaymodi / Email Server (Linux, Unix, Mac).md
Created August 3, 2018 08:45 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only Email Server (Linux, Unix, Mac)

Setup a Local Only Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix