欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

docker 数据持久化

程序员文章站 2022-06-22 15:46:05
confluence jira svn teamtoy openproject ......

confluence

#!/bin/bash

docker run \
--name confluence \
--volume "$pwd/data/opt":/opt \
--volume "$pwd/data/atlassian/confluence":/var/atlassian/confluence \
--detach --publish 8090:8090 \
confluence/confluence:6.13.0

jira

#!/bin/bash

docker run \
--name jira \
-m 4g \
--volume "$pwd/data/opt":/opt \
--volume "$pwd/data/jira":/var/atlassian/jira \
--detach --publish 8084:8080 \
jira/jira:v8.0.2

svn

#!/bin/bash

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

teamtoy

#!/bin/bash
# nginx
docker run \
--name teamtoy \
-p 8082: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 \
nginx

#!/bin/bash
# php
docker run --name myphp -p 9001:9000 -v /data3/web:/www php:5.6-fpm

openproject

#!/bin/bash
docker run
    -d -p 8080: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.pkvc3dqyqgyejnh4rdoo_g.lvjil2gucpkqoaxr5unwjmlcmk-3ytt0zwtnzgkzsru" \
    -v "$pwd/pgdata":/var/openproject/pgdata \
    -v "$pwd/static":/var/openproject/assets \
    openproject/community:8