Skip to content

docker-hosting/install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Webserver Structure

Server Installation

On a fresh install of Fedora (version 25 or 26 tested), run the following commands to install the necessary software components:

# Install git
dnf install git

# Clone awesome mamiu/dotfiles and run installer
git clone https://github.com/mamiu/dotfiles
cd dotfiles/install
./install.sh

Then Log in again (with your newly created admin user).

If you want to, you can install the ssh key on your Mac/Linux host to log in without password

# on your Mac / Linux host run
ssh-copy-id [youruser]@[yourfedorahost]

Webserver structure

In order to run the web server you need to clone this repository into /var/www. You need to create a docker network with docker network create nginx-proxy.

Restore backup

To restore a backup, edit the file backup/backup.env and insert your AWS credentials. Afterwards run ./backup/restore.sh and all files will be restored from your AWS S3 Bucket.

Creating backups

To create backups, you can edit the file backup/backup.env and change the CRON_SCHEDULE variable. Then run ./backup/start_sync.sh and a docker container is started that will sync your /var/www with the declared AWS S3 Bucket.

Host your sites from scratch

To start with a new server, you need two elementary docker-compose 'projects'. The first is docker-hosting/nginx-proxy-template, the second one is docker-hosting/mail-forwarder-template.

About

Install instructions for hosting based on docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages