A Flask-based website that can be deployed using Docker for easy deployment on any server or cloud platform.
To run the website in development mode:
python app.py
This will start the Flask development server on http://localhost:5000. The development server is not suitable for production use, but it's perfect for testing and debugging.
This project can be easily deployed using Docker and Docker Compose.
-
Build and start the Docker container:
docker-compose up --build
-
Access the website at http://localhost:5000
-
Clone the repository on your server:
git clone https://github.com/orbical-dev/orbical-website.git cd orbical-website
-
Start the application with Docker Compose:
docker-compose up -d
-
Set up a reverse proxy with Nginx (optional but recommended).
The Docker image is automatically built and published to GitHub Container Registry (ghcr.io) when changes are pushed to the main branch.
-
Pull the latest image:
docker pull ghcr.io/orbical-dev/orbical-website:latest
-
Run the container:
docker run -d -p 5000:5000 -v $(pwd)/contact.txt:/app/contact.txt ghcr.io/orbical-dev/orbical-website:latest
The application is configured to run on port 5000 by default. You can modify the port in the app.py
file or by setting environment variables in the docker-compose.yaml
file.
When using Docker, you can mount volumes to persist data, such as the contact form submissions stored in contact.txt
.
This project is licensed under the MIT License - see the LICENSE file for details.