This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| #!/bin/bash | |
| # This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys | |
| # 1. Script must run on the source server | |
| # 2. Have all the containers running that you want to migrate | |
| # Configuration - Modify as needed | |
| sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server | |
| destinationHost="server.example.com" |