jjethwa / rundeck

GNU General Public License v3.0
123 stars 137 forks source link

postgres integration with rundeck #126

Closed evolv34 closed 6 years ago

evolv34 commented 6 years ago

Postgres integration with rundeck.

evolv34 commented 6 years ago
version: '2.1'

services: 
  rundeck:
      image: <rundeck image name>
      hostname: rundeck
      healthcheck:
        test: ["CMD", "curl", "-f", "http://localhost:4440/menu/home"]
        interval: 50s
        timeout: 30s
        retries: 3
      depends_on:
        postgres:
          condition: service_healthy
      links:
        - postgres:postgres
      ports:
        - "4441:4440"
      environment:
        EXTERNAL_SERVER_URL: http://localhost:4440
        SKIP_DATABASE_SETUP: "false"
        NO_LOCAL_MYSQL: "true"
        DATABASE_DRIVER: org.postgresql.Driver
        DATABASE_URL: jdbc:postgresql://postgres/rundeckdb
        DATABASE_ADMIN_USER: admin
        RUNDECK_PASSWORD: admin
        RUNDECK_STORAGE_PROVIDER: db

  postgres:
    image: postgres
    hostname: postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 30s
      timeout: 30s
      retries: 3
    ports:
      - '5433:5432'
    # volumes:
    #   - ./test-data/:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: 'admin'
      POSTGRES_PASSWORD: 'admin'
      POSTGRES_DB: 'postgres'

I used this yml file for testing. hope its helpful.

jjethwa commented 6 years ago

Hi @evolv34

I'm back! Just give me a few days to review and test. Really appreciate it! 😄

evolv34 commented 6 years ago

hi @jjethwa , any update on this PR ?

Thanks.

jjethwa commented 6 years ago

Hi @evolv34

Sorry, took me a bit longer to get things tested. I'm going to merge now so it's available in under the latest tag for further testing by users that use that tag. Really appreciate your PR 😄