Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== docker program that DOES use docker volumes ==== Check out mailcow. This is not the full <code>docker-compose.yml</code> configuration file, just a part of it. Look at lines 25-28. For the container <code>mysql-mailcow</code>, we have two docker volumes. The docker volume <code>mysql-vol-1</code> will show up inside the <code>mysql-mailcow</code> container'' (which is a tiny virtual computer that runs our programs, in this case, the mysql database. mysql databases usually contain data on users, configurations, product orders, etc)''. Whatever is in the <code>mysql-vol-1</code> docker volume will show up inside the <code>mysql-mailcow</code> container at <code>/var/lib/mysql</code>. It is using a docker volume instead of the main computer/operating system’s file system to store its files. However, on line 28, we have <code>- ./data/conf/mysql/:/etc/mysql/conf.d/:ro,Z</code> which means that whatever is in the subfolder of our mailcow folder''(where the <code>docker-compose.yml</code> file is that we used to install mailcow)'' under <code>data/conf/mysql/</code> will show up inside the docker container at <code>/etc/mysql/conf.d/</code> <pre>services: unbound-mailcow: image: mailcow/unbound:1.23 environment: - TZ=${TZ} - SKIP_UNBOUND_HEALTHCHECK=${SKIP_UNBOUND_HEALTHCHECK:-n} volumes: - ./data/hooks/unbound:/hooks:Z - ./data/conf/unbound/unbound.conf:/etc/unbound/unbound.conf:ro,Z restart: always tty: true networks: mailcow-network: ipv4_address: ${IPV4_NETWORK:-172.22.1}.254 aliases: - unbound mysql-mailcow: image: mariadb:10.5 depends_on: - unbound-mailcow - netfilter-mailcow stop_grace_period: 45s volumes: - mysql-vol-1:/var/lib/mysql/ - mysql-socket-vol-1:/var/run/mysqld/ - ./data/conf/mysql/:/etc/mysql/conf.d/:ro,Z environment: - TZ=${TZ} - MYSQL_ROOT_PASSWORD=${DBROOT} - MYSQL_DATABASE=${DBNAME} - MYSQL_USER=${DBUSER} - MYSQL_PASSWORD=${DBPASS} - MYSQL_INITDB_SKIP_TZINFO=1 restart: always ports: - "${SQL_PORT:-127.0.0.1:13306}:3306" networks: mailcow-network: aliases: - mysql</pre> <span id="mailcow-docker-volume-descriptions"></span> ===== mailcow docker volume descriptions ===== Here are some docker volumes used for mailcow: <pre>louis@mailserver:/opt/mailcow-dockerized$ docker volume ls DRIVER VOLUME NAME local mailcowdockerized_clamd-db-vol-1 local mailcowdockerized_crypt-vol-1 local mailcowdockerized_mysql-socket-vol-1 local mailcowdockerized_mysql-vol-1 local mailcowdockerized_postfix-vol-1 local mailcowdockerized_redis-vol-1 local mailcowdockerized_rspamd-vol-1 local mailcowdockerized_sogo-userdata-backup-vol-1 local mailcowdockerized_sogo-web-vol-1 local mailcowdockerized_solr-vol-1 local mailcowdockerized_vmail-index-vol-1 local mailcowdockerized_vmail-vol-1 </pre> <span id="main-data-storage"></span> ====== main data storage ====== * <code>vmail-vol-1</code>: The emails & attachment files * <code>mysql-vol-1</code>: Database stuff like user accounts/settings * <code>redis-vol-1</code>: Temporary data for faster load times <span id="email-processing"></span> ====== email processing ====== * <code>postfix-vol-1</code>: Mail server configuration & logs * <code>rspamd-vol-1</code>: spam filter rules & training data * <code>clamd-db-vol-1</code>: Virus scanning database <span id="webmail-user-data"></span> ====== webmail & user data ====== * <code>sogo-userdata-backup-vol-1</code>: Backups of user settings & data * <code>sogo-web-vol-1</code>: Web interface files * <code>vmail-index-vol-1</code>: Helps search through old email quickly <span id="random-technical-volumes"></span> ====== random technical volumes ====== * <code>crypt-vol-1</code>: Encryption-related data * <code>mysql-socket-vol-1</code>: This assists database communication * <code>solr-vol-1</code>: Search engine data <span id="this-seems-like-a-lot"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)