ejabberd + Biboumi + Docker = ๐๐ฌ
admin 6bf0ddca31 copy key in acme_post_hook to preserve permissions | 4 months ago | |
---|---|---|
.vscode | 2 years ago | |
EXTRAS | 2 years ago | |
data | 4 months ago | |
.env.example | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.db-migration.md | 2 years ago | |
README.md | 2 years ago | |
RELEASE.md | 2 years ago | |
TASKS.md | 2 years ago | |
docker-compose.yml | 4 months ago | |
entrypoint.sh | 2 years ago |
ยดยดยด cd /opt/docker/db/utils/ ./create_db.sh ejabberd ยดยดยด
ยดยดยด docker cp ejabberd:/home/ejabberd/database/mysql.sql . docker cp mysql.sql db:/ rm mysql.sql docker exec db sh -c 'mysql -D ejabberd -p$MYSQL_ROOT_PASSWORD < /mysql.sql' docker exec db sh -c 'echo "SHOW TABLES;" | mysql -D ejabberd -p$MYSQL_ROOT_PASSWORD --table' docker exec db sh -c 'rm /mysql.sql' ยดยดยด
ยดยดยด cd /opt/docker/ejabberd docker compose down cd /opt/docker/ tar cfj ejabberd.tar.bz2 ejabberd ยดยดยด
ยดยดยด cd /opt/docker/ejabberd vi docker-compose.yml ## comment out ports ยดยดยด
ยดยดยด vi /opt/docker/ejabberd/data/conf.custom/db.yml default_db: sql sql_type: mysql sql_server: "db" sql_database: "ejabberd" sql_username: "ejabberd" sql_password: "PutYourSecretPasswordHere" docker compose up -d ยดยดยด
ยดยดยด docker exec ejabberd sh -c 'bin/ejabberdctl --no-timeout export2sql im.s-up.net /tmp/sqldump.sql' docker cp ejabberd:/tmp/sqldump.sql . docker exec ejabberd sh -c 'rm /tmp/sqldump.sql' docker cp sqldump.sql db:/ rm sqldump.sql docker exec db sh -c 'mysql -D ejabberd -p$MYSQL_ROOT_PASSWORD < /sqldump.sql' ยดยดยด
ยดยดยด cd /opt/docker/ejabberd vi docker-compose.yml ## comment out ports
ยดยดยด docker exec -it db sh -c 'mysql -D ejabberd -p$MYSQL_ROOT_PASSWORD' ยดยดยด