Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement data persistence with docker

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "docker how to achieve data persistence", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "docker how to achieve data persistence" this article.

Docker data persistence

Confluence

#! / bin/bashdocker run\-- name confluence\-- volume "$PWD/data/opt": / opt\-- volume "$PWD/data/atlassian/confluence": / var/atlassian/confluence\-- detach-- publish 8090 PWD/data/opt\ confluence/confluence:6.13.0

Jira

#! / bin/bashdocker run\-- name jira\-m 4G\-- volume "$PWD/data/opt": / opt\-- volume "$PWD/data/jira": / var/atlassian/jira\-- detach-- publish 8084 volume 8080\ jira/jira:v8.0.2

Svn

#! / bin/bashdocker run\-- name svn\-m 2048m-- cpuset-cpus=1\-d-p 3690 data2/svn:/var/opt/svn 3690\-v / data2/svn:/var/opt/svn\ garethflowers/svn-server

Teamtoy

#! / bin/bash# nginxdocker run\-- name teamtoy\-p 8082PWD/nginx/www 80-d\-v "$PWD/nginx/www": / usr/share/nginx/html:ro\-v "$PWD/nginx/conf/conf.d": / etc/nginx/conf.d:ro\-v "$PWD/logs": / var/log/nginx:rw\-- link myphp5.6\ nginxroombinbinbinbinbinBax phpdocker run-- name myphp-p 90019000 usr/share/nginx/html:ro-v / data3/web:/www php:5.6-fpm

Openproject

#! / bin/bashdocker run-d-p 8080 EMAIL_DELIVERY_METHOD=smtp 80-- name openproject\-m 1024m-- cpuset-cpus=1\-e EMAIL_DELIVERY_METHOD=smtp\-e SMTP_ADDRESS=smtp.exmail.qq.com\-e SMTP_PORT=465\-e SMTP_DOMAIN=ingbaobei.com\-e SMTP_AUTHENTICATION=login\-e SMTP_ENABLE_STARTTLS_AUTO=true\-e SMTP_USER_NAME= "\-e SMTP_PASSWORD=" SG.pKvc3DQyQGyEjNh5RdOo _ g.lVJIL2gUCPKqoAXR5unWJMLCMK-3YtT0ZwTnZgKzsrU "\-v" $PWD/pgdata ": / var/openproject/pgdata\-v" $PWD/static ": / var/openproject/assets\ openproject/community:8 above are all the contents of the article" how docker implements data persistence " Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report