https://github.com/lukasdotcom/dockerwebsite
A docker container for my website
https://github.com/lukasdotcom/dockerwebsite
Last synced: 5 months ago
JSON representation
A docker container for my website
- Host: GitHub
- URL: https://github.com/lukasdotcom/dockerwebsite
- Owner: lukasdotcom
- License: mit
- Created: 2021-12-24T19:19:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T16:22:22.000Z (about 3 years ago)
- Last Synced: 2025-09-03T22:46:09.626Z (10 months ago)
- Language: Dockerfile
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dockerWebsite
A docker container for my website
## Installation
Steps for installation
First get the .env file with:
``
wget https://raw.githubusercontent.com/Lukasdotcom/dockerWebsite/main/.env
``
Then make sure that all the variables in the .env file are the way you want them to be.
Then make a volume for the backups by running:
``
docker volume create backup
``
Then run the following command to start the container and then it should be accessable at port 80.
``
docker run -d -p 80:80 --name website --env-file .env --volume=backup:/backup lukasdotcom/website
``
When you are done I would recommend for you to login and update the server in the web portal.
## Email
You can send emails through any smtp server and then just put the credentials in the enviromental file.
## Advanced
If you want ssl you can expose port 443 also and use apache certbot to enable ssl on the website.