Comments (7)
@peefour data is not lost if the container is stopped and started. but if you delete it, it's gone for sure, unless you commit the changes.
from docker-redmine.
@peefour this is the main reason why volumes can be mounted in docker.
from docker-redmine.
ah ok ;)
thank you!
from docker-redmine.
on another note, you say that you will remove mysql from the docker instance ( indeed the philosophy behind docker is that every service has its own container), but for me I like to have all related services in one container. so I would appreciate it if mysql (and apache etc) will stay in the container ;)
thanks very much!
from docker-redmine.
@peefour the idea is each container should provide a single service. in this case it would be the redmine application. Any additional services that the application requires, like a database server, should be availed from other containers (service discovery) or configured manually.
How this helps:
- reduced size of the image. Removing mysql-server alone trims the image size by ~100MB.
- reduced image complexity in the sense that we only deal with the working of redmine and not the mysql server. For example, in another image (sameersbn/gitlab), i have an issue report saying that the mysql server is not starting. Now debugging that issue is a pain because there are too many variables in the container. If it was just a container that provided a mysql database server it would have been simple to figure out the issue.
- You can share services between containers. For example, redmine requires a database server and lets say we select a postgresql server for this and use the sameersbn/postgresql container. Now say another application, eg. gitlab, also requires a database server and since we already have a postgresql container running we can simply use it.
The alternate way would be to run a postgresql server in the redmine container and another postgresql server in the gitlab container. As you can already tell this would not be optimal.
As an aside, It is advisable to use postgresql server over mysql for the simple reason being postgresql performs much better with multiple cores/cpus and in today's world who does not have a multicore cpu. PostgreSQL beats the stuffing out of MySQL.
P.S. This is a blog post from 2006, so things could have changed over the years. Do your own research.
from docker-redmine.
hi,
thanks for the extensive info sameer ;)
I understand the rationale behind it, and it makes a lot of sense, especially in corporate environments.
But having everything in one container has also benefits, because having everything in several containers means more configurations, network links, and complexity. For non-professional use of redmine (in my case) that's a bit overkill ;)
from docker-redmine.
@peefour well starting an additional container cannot be an overkill :)
from docker-redmine.
Related Issues (20)
- Help:Unknown system variable "transaction_isolation" HOT 6
- Multiple problems on rebuilding the redmine image HOT 3
- Upgrade from 5.1.0 to 5.1.1-1 rake aborted HOT 9
- postgresql container fails to start and report error: popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". HOT 2
- How to upgrade from sameersbn/redmine: 4.1.1-8 to sameersbn/redmine: 5.1.1-1 ? HOT 5
- redmine:5.1.1-1 ocker-compose up error HOT 3
- An error occurred while sending mail HOT 10
- Can't download large files HOT 4
- Build is failing HOT 4
- Run sameersbn/redmine with an External Azure MySQL database HOT 2
- 5.1.1-4 dies because of Matrix in gem HOT 7
- MOving back from 5.1.1 to 5.0.7 HOT 1
- Bug: github workflow should only tag "latest" for changes to master branch HOT 2
- Failed: Upgrade from 5.0.7 -> 5.1.2 on Synology Docker HOT 4
- ERROR 1193 (HY000) at line 1: Unknown system variable 'tx_isolation' with a MySQL DB version 8.1 HOT 5
- Container is not able to connect to the internet using the bridge network on Synology DSM 7.2 HOT 9
- IMAP email job not working in 5.1.2+ HOT 6
- container "redmine-mysql-1" does not start with docker v26.0.2 and works with 26.0.1 ... ? HOT 3
- Invalid form authenticity token error HOT 11
- Internet is not ready when plugin installing and rubygems update is required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-redmine.