{"id":41799,"date":"2023-06-28T07:13:18","date_gmt":"2023-12-30T20:57:32","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/"},"modified":"2024-04-30T11:02:10","modified_gmt":"2024-04-30T03:02:10","slug":"%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/","title":{"rendered":"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf"},"content":{"rendered":"<p>\u7531\u4e8e\u5f88\u96be\u627e\u5230\u201c\u5c06Tomcat\u548cPostgreSQL\u955c\u50cf\u5206\u522b\u521b\u5efa\u5e76\u5728docker-compose\u4e2d\u8fd0\u884c\u201d\u7684\u4f8b\u5b50\uff0c\u56e0\u6b64\u6211\u8fdb\u884c\u4e86\u4e00\u4e9b\u5c1d\u8bd5\u548c\u9519\u8bef\uff0c\u8bd5\u56fe\u5c06\u5b83\u4eec\u5408\u5e76\u5230\u4e00\u4e2a\u5bb9\u5668\u4e2d\u3002<\/p>\n<h2>\u521b\u5efaDockerfile\u3002<\/h2>\n<ul class=\"post-ul\">Dockerize PostgreSQL | Docker Documentation<\/ul>\n<p>\u56e0\u4e3a\u5728\u4e00\u4e2a\u57fa\u4e8eUbuntu\u955c\u50cf\u4e0a\u6709\u4e00\u4e2a\u5b89\u88c5PostgreSQL 9.3\u7684\u793a\u4f8b\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u6309\u7167\u8fd9\u4e2a\u793a\u4f8b\uff0c\u4ee5\u4e00\u4e2a\u5e26\u6709Tomcat\u7684\u955c\u50cf\u4f5c\u4e3a\u57fa\u7840\uff0c\u800c\u4e0d\u662f\u4f7f\u7528Ubuntu\u4f5c\u4e3a\u57fa\u7840\u3002<\/p>\n<p>Dockerfile<\/p>\n<p>Docker\u6784\u5efa\u6587\u4ef6<\/p>\n<pre class=\"post-pre\"><code>FROM tomcat:9.0-jre8\r\nMAINTAINER SvenDowideit@docker.com\r\n\r\n# Add the PostgreSQL PGP key to verify their Debian packages.\r\n# It should be the same key as https:\/\/www.postgresql.org\/media\/keys\/ACCC4CF8.asc\r\nRUN apt-key adv --keyserver hkp:\/\/p80.pool.sks-keyservers.net:80 --no-tty --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8\r\n\r\n# Add PostgreSQL's repository. It contains the most recent stable release\r\n#     of PostgreSQL, ``9.6``.\r\nRUN echo \"deb http:\/\/apt.postgresql.org\/pub\/repos\/apt\/ precise-pgdg main\" &gt; \/etc\/apt\/sources.list.d\/pgdg.list\r\n\r\n# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.6\r\n#  There are some warnings (in red) that show up during the build. You can hide\r\n#  them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive\r\nRUN apt-get update &amp;&amp; apt-get install -y software-properties-common postgresql-9.6 postgresql-client-9.6 postgresql-contrib-9.6\r\n\r\n# Note: The official Debian and Ubuntu images automatically ``apt-get clean``\r\n# after each ``apt-get``\r\n\r\n# Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.6`` package when it was ``apt-get installed``\r\nUSER postgres\r\n\r\n# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and\r\n# then create a database `docker` owned by the ``docker`` role.\r\n# Note: here we use ``&amp;&amp;\\`` to run commands one after the other - the ``\\``\r\n#       allows the RUN command to span multiple lines.\r\nRUN    \/etc\/init.d\/postgresql start &amp;&amp;\\\r\n    psql --command \"CREATE USER docker WITH SUPERUSER PASSWORD 'docker';\" &amp;&amp;\\\r\n    createdb -O docker docker\r\n\r\n# Adjust PostgreSQL configuration so that remote connections to the\r\n# database are possible.\r\nRUN echo \"host all  all    0.0.0.0\/0  md5\" &gt;&gt; \/etc\/postgresql\/9.6\/main\/pg_hba.conf\r\n\r\n# And add ``listen_addresses`` to ``\/etc\/postgresql\/9.6\/main\/postgresql.conf``\r\nRUN echo \"listen_addresses='*'\" &gt;&gt; \/etc\/postgresql\/9.6\/main\/postgresql.conf\r\n\r\n# Expose the PostgreSQL port\r\nEXPOSE 5432\r\n\r\n# Add VOLUMEs to allow backup of config, logs and databases\r\nVOLUME  [\"\/etc\/postgresql\", \"\/var\/log\/postgresql\", \"\/var\/lib\/postgresql\"]\r\n\r\n# Set the default command to run when starting the container\r\nCMD [\"\/usr\/lib\/postgresql\/9.6\/bin\/postgres\", \"-D\", \"\/var\/lib\/postgresql\/9.6\/main\", \"-c\", \"config_file=\/etc\/postgresql\/9.6\/main\/postgresql.conf\"]\r\n<\/code><\/pre>\n<h2>\u4ecetomcat:9.0-jre8<\/h2>\n<p>\u56e0\u4e3a\u6211\u60f3\u4f7f\u7528Java 8\uff0c\u6240\u4ee5\u9700\u8981\u5e26\u6709JRE 8\u3002<\/p>\n<h2>\u4f7f\u7528\u4e2d\u6587\u8fdb\u884c\u672c\u5730\u5316\u7684\u91cd\u65b0\u8868\u8ff0\uff1a<br \/>\n\u8fd0\u884c apt-key adv \u2026<\/h2>\n<p>\u6dfb\u52a0\u4e86 &#8211;no-tty\u3002\u5982\u679c\u6ca1\u6709\u5b83\uff0c\u5c06\u4f1a\u51fa\u73b0 gpg: cannot open &#8216;\/dev\/tty&#8217;: No such device or address \u7684\u9519\u8bef\u6d88\u606f\uff08\u53c2\u8003\uff09\u3002<\/p>\n<h2>\u8fd0\u884c apt-get update \u5e76\u4e14\u5b89\u88c5 &#8230;<\/h2>\n<p>\u628a9.3\u66ff\u6362\u4e3a9.6\u3002<br \/>\n\u5220\u9664python-software-properties\uff0c\u597d\u50cf\u53ea\u9700\u8981software-properties-common\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h2>\u5236\u4f5cDocker\u6620\u50cf<\/h2>\n<pre class=\"post-pre\"><code>docker build .\/pg9_tomcat9 <span class=\"nt\">-t<\/span> pg9_tomcat9\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/14-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u521b\u5efa\u5bb9\u5668\u5e76\u8fd0\u884cPostgreSQL\u3002<\/h2>\n<pre class=\"post-pre\"><code>docker run <span class=\"nt\">-d<\/span> <span class=\"nt\">--rm<\/span> <span class=\"nt\">-p<\/span> 8888:8080 <span class=\"nt\">-p<\/span>:5432:5432 <span class=\"nt\">--name<\/span> pg9_tomcat9_1 pg9_tomcat9\r\n<\/code><\/pre>\n<h3>\u542f\u52a8\u5bb9\u5668\u786e\u8ba4<\/h3>\n<pre class=\"post-pre\"><code>docker ps\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/19-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u786e\u8ba4\u8fde\u63a5\u81f3PostgreSQL<\/h3>\n<p>\u5c1d\u8bd5\u4eceDocker\u4e3b\u673a\u8fde\u63a5\u5230psql\u3002<\/p>\n<pre class=\"post-pre\"><code>psql <span class=\"nt\">-h<\/span> localhost <span class=\"nt\">-U<\/span> docker <span class=\"nt\">-d<\/span> docker\r\n<span class=\"c\"># Password: docker<\/span>\r\n\r\n<span class=\"nv\">docker<\/span><span class=\"o\">=<\/span><span class=\"c\"># \\l<\/span>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/23-0.png\" alt=\"image.png\" \/><\/div>\n<h2>tomcat \u542f\u52a8<\/h2>\n<pre class=\"post-pre\"><code>docker <span class=\"nb\">exec<\/span> <span class=\"nt\">-d<\/span> pg9_tomcat9_1 bash catalina.sh run\r\n<\/code><\/pre>\n<h3>\u786e\u8ba4Tomcat\u64cd\u4f5c<\/h3>\n<p>\u7528\u4e3b\u673a\u7684Web\u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/localhost:8888\/\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/28-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u6211\u60f3\u5728 Dockerfile \u4e2d\u5199\u5165 CMD\uff0c\u4ee5\u4fbf\u542f\u52a8tomcat\uff0c\u4f46\u662f\u6211\u5c1d\u8bd5\u8fc7\u4f46\u6ca1\u6709\u6210\u529f\uff08\u5982\u679c\u542f\u52a8tomcat\uff0cpostgres\u5c06\u65e0\u6cd5\u542f\u52a8\uff09\u3002<\/p>\n<h2>\u5176\u4ed6<\/h2>\n<h3>\u8fdb\u5165\u5bb9\u5668\uff0c\u5e76\u4ee5 bash \u547d\u4ee4\u884c\u65b9\u5f0f\u64cd\u4f5c<\/h3>\n<pre class=\"post-pre\"><code>docker <span class=\"nb\">exec<\/span> <span class=\"nt\">-it<\/span> <span class=\"nt\">-u<\/span> 0 pg9_tomcat9_1 bash\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0d\u52a0 -u 0 \uff0c\u5c31\u4f1a\u4ee5 postgres \u7528\u6237\u767b\u5f55\u3002<\/p>\n<h3>\u505c\u6b62Tomcat<\/h3>\n<pre class=\"post-pre\"><code>docker <span class=\"nb\">exec <\/span>pg9_tomcat9_1 bash catalina.sh stop\r\n<\/code><\/pre>\n<p>\u5728\u8fd0\u884c Docker \u65f6\uff0c\u60a8\u53ef\u4ee5\u81ea\u7531\u6307\u5b9a\u5377\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u5f88\u96be\u627e\u5230\u201c\u5c06Tomcat\u548cPostgreSQL\u955c\u50cf\u5206\u522b\u521b\u5efa\u5e76\u5728docker-compose\u4e2d\u8fd0\u884c\u201d\u7684\u4f8b\u5b50\uff0c [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41799","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5236\u4f5c\u4e00\u4e2a\u5305\u542btomcat\u548cpostgresql\u7684docker\u955c\u50cf\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf\" \/>\n<meta property=\"og:description\" content=\"\u7531\u4e8e\u5f88\u96be\u627e\u5230\u201c\u5c06Tomcat\u548cPostgreSQL\u955c\u50cf\u5206\u522b\u521b\u5efa\u5e76\u5728docker-compose\u4e2d\u8fd0\u884c\u201d\u7684\u4f8b\u5b50\uff0c [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5236\u4f5c\u4e00\u4e2a\u5305\u542btomcat\u548cpostgresql\u7684docker\u955c\u50cf\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-30T20:57:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T03:02:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/14-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/\",\"name\":\"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-30T20:57:32+00:00\",\"dateModified\":\"2024-04-30T03:02:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5236\u4f5c\u4e00\u4e2a\u5305\u542btomcat\u548cpostgresql\u7684docker\u955c\u50cf\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf","og_description":"\u7531\u4e8e\u5f88\u96be\u627e\u5230\u201c\u5c06Tomcat\u548cPostgreSQL\u955c\u50cf\u5206\u522b\u521b\u5efa\u5e76\u5728docker-compose\u4e2d\u8fd0\u884c\u201d\u7684\u4f8b\u5b50\uff0c [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5236\u4f5c\u4e00\u4e2a\u5305\u542btomcat\u548cpostgresql\u7684docker\u955c\u50cf\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-30T20:57:32+00:00","article_modified_time":"2024-04-30T03:02:10+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d491e37434c4406caec37\/14-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/","name":"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-30T20:57:32+00:00","dateModified":"2024-04-30T03:02:10+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5236\u4f5c\u4e00\u4e2a\u5305\u542bTomcat\u548cPostgreSQL\u7684Docker\u955c\u50cf"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%8c%85%e5%90%abtomcat%e5%92%8cpostgresql%e7%9a%84docker%e9%95%9c%e5%83%8f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41799"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41799\/revisions"}],"predecessor-version":[{"id":91514,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41799\/revisions\/91514"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}