docker数据持久化

编程

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="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"

-v "$PWD/pgdata":/var/openproject/pgdata

-v "$PWD/static":/var/openproject/assets

openproject/community:8

 

以上是 docker数据持久化 的全部内容, 来源链接: utcz.com/z/512015.html

回到顶部