Skip to content

open-comm/apache-static-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Apache Webserver Configuration

Ready to use static apache2 web server docker-compose configuration for a traefik 2 web proxy. With a ssh server with rsync to remotely connect to the service and upload the static html files.

This configuration uses the official apache2 docker image:

This configuration uses the panubo/sshd docker image:

Install

# clone repository
git clone https://gitlab.wachter-jud.net/docker/apache-static-sshd.git

# move into directory
cd apache-static-sshd

# copy and edit the sample environment file
cp sample.env .env

## open the .env file in a text editor and configure all
## values to your needs: DOMAIN, ROUTERNAME, SSH_PORT

Put all the public keys that you would like to be able to connect to it via SSH or SFTP to it into a new file in the authorized_keys folder. A password is then not needed, as users are authorized via their public key.

Usage

# start docker containers
docker-compose up -d

# stop docker containers
docker-compose down

# upgrade container
docker-compose pull

Connect & Synchronize via SSH

Put all files into the www directory.

# connect with ssh to the server on port 2222
ssh admin@your.domain -p 2222

# copy the files in your local folder to the web server on port 2222
scp -P 2222 -r * admin@your.domain:/home/admin

# synchronize the files in your local folder to the web server on port 2222
rsync -azhe "ssh -p 2222" ./ admin@your.domain:/home/admin

About

Docker compose script for static apache server with ssh daemon, traefik enabled

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages