-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
production-level Docker installation #551
Comments
Sébastien Boutelier also noted:
ecosound@docker-user:~/ecoSound-web$ docker volume ls
|
Mario Fischer noted (translated): The ecoSound-web data (sound files and database) have to be stored outside of the containers, and a connection is established from the container to the database. Files can be mapped in the container to find them inside the file hierarchy inside the container although they are stored on the host. The containers would in that sense be totally independent as they would only "do the computation". Data inside are not persistent because they are deleted when the containers are killed. |
We need to make it possible to use a practical and secure Docker installation for production purposes on VMs.
@LiuDilongNJ wrote on the subject:
The project we have on GitHub is designed and configured specifically for testing purposes. As such, it is not production-ready for several reasons:
Security Concerns
The current setup is not secured for Docker deployment in production environments. Additional measures would be needed to harden the container, including non-root user configurations, network security, and runtime restrictions.
Performance Optimization
The configuration is not tuned for container performance. On a production server with multiple projects running, Docker containers may compete for shared resources, potentially impacting the performance of other applications.
Persistence and Recovery
In a virtual machine (VM), data is self-contained within the VM, making it easier to back up and restore as a single entity. If the VM is damaged, restoring it from a snapshot is straightforward.
In contrast, Docker requires external storage for data persistence, and improper configurations could risk data loss or affect other server functions.
Complexity in Configuration
While Docker can be used in production, it demands careful planning and configuration. This includes managing volumes for persistence, securing containers, and monitoring resource usage.
In comparison, virtual machines are often simpler and quicker to configure for production scenarios, offering strong isolation and pre-established tools for backup and recovery.
In summary, while Docker is a viable option for production with the right expertise and adjustments, the GitHub project in its current state is not suitable for direct production use. Virtual machines provide a more straightforward and robust alternative for deploying our project in production environments.
The text was updated successfully, but these errors were encountered: