<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Postgres on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/postgres/</link>
        <description>Recent content in Postgres on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Tue, 30 Apr 2019 12:45:40 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/postgres/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>SonarQube 6.7 Community with Postgres 9.6 in Docker on Ubuntu</title>
            <link>https://www.nico-maas.de/posts/2019-04-30-sonarqube-6-7-community-with-postgres-9-6-in-docker-on-ubuntu/</link>
            <pubDate>Tue, 30 Apr 2019 12:45:40 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2019-04-30-sonarqube-6-7-community-with-postgres-9-6-in-docker-on-ubuntu/</guid>
            <description>&lt;p&gt;This is a very quick install for SonarQube on Ubuntu 18.04 LTS. I presume you got the latest Docker CE 18.09 and docker-compose 1.24 installed.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# create folders for sonarqube files and postgres&#xD;&#xA;sudo mkdir -p /var/sonarqube/{conf,data,logs,extensions}&#xD;&#xA;sudo chown -R 999:999 /var/sonarqube&#xD;&#xA;sudo mkdir -p /var/sonarqube/postgres&#xD;&#xA;# make folder for all Docker files in home&#xD;&#xA;mkdir ~/sonarqube&#xD;&#xA;cd sonarqube&#xD;&#xA;# create docker-compose.yml with following content&#xD;&#xA;version: &amp;#39;3.1&amp;#39;&#xD;&#xA;services:&#xD;&#xA;  db:&#xD;&#xA;    image: postgres:9.6-alpine&#xD;&#xA;    restart: unless-stopped&#xD;&#xA;    volumes:&#xD;&#xA;      - /var/sonarqube/postgres:/var/lib/postgresql/data&#xD;&#xA;    environment:&#xD;&#xA;     - POSTGRES_USER=sonar&#xD;&#xA;     - POSTGRES_PASSWORD=sonar&#xD;&#xA;&#xD;&#xA;  sonarqube:&#xD;&#xA;    image: sonarqube:6.7-community&#xD;&#xA;    ports:&#xD;&#xA;      - 9000:9000&#xD;&#xA;      - 9092:9092&#xD;&#xA;    restart: unless-stopped&#xD;&#xA;    volumes:&#xD;&#xA;      - /var/sonarqube/conf:/opt/sonarqube/conf&#xD;&#xA;      - /var/sonarqube/data:/opt/sonarqube/data&#xD;&#xA;      - /var/sonarqube/logs:/opt/sonarqube/logs&#xD;&#xA;      - /var/sonarqube/extensions:/opt/sonarqube/extensions&#xD;&#xA;    environment:&#xD;&#xA;      - SONARQUBE_HOME=/opt/sonarqube&#xD;&#xA;      - SONARQUBE_JDBC_USERNAME=sonar&#xD;&#xA;      - SONARQUBE_JDBC_PASSWORD=sonar&#xD;&#xA;      - SONARQUBE_JDBC_URL=jdbc:postgresql://db/sonar&#xD;&#xA;# launch &#xD;&#xA;docker-compose up -d&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can then access your SonarQube instance on http://&lt;code&gt;ServerIP&lt;/code&gt;:9000 with the credential &lt;code&gt;admin/admin&lt;/code&gt;.&lt;/p&gt;</description>
        </item></channel>
</rss>
