Docker

jira software & confluence & postgres (with docker compose)

Superkill 2018. 6. 3. 19:52
반응형

https://confluence.atlassian.com/doc/supported-platforms-207488198.html#SupportedPlatforms-Java


version: "3.2"


services:

  db:

    image: postgres

    volumes:

      - /data/docker/confluence/postgres:/var/lib/postgresql

    environment:

      - POSTGRES_DB=confluence

      - POSTGRES_PASSWORD=yourpassword

      - POSTGRES_INITDB_ARGS=--encoding=UTF-8

    healthcheck:

      test: "pg_isready -h localhost -p 5432 -q -U postgres"

      interval: 3s

      timeout: 1s

      retries: 10


  confluence:

    image: confluence

    volumes:

        - /data/docker/confluence/confluence:/var/atlassian/application-data/confluence

    ports:

      - "8090-8091:8090-8091"

    depends_on:

      - db

    links:

      - db