Sha256: 3739eb537df99c8f2d92e3a1392ee8e6ae017c09c5f950a912932cee45413c30

Contents?: true

Size: 902 Bytes

Versions: 14

Compression:

Stored size: 902 Bytes

Contents

# frozen_string_literal: true

module Orchestration
  module Services
    module Database
      module Adapters
        class Postgresql
          def name
            'postgresql'
          end

          def image
            'library/postgres'
          end

          def credentials
            {
              'username' => 'postgres',
              'password' => 'password',
              'database' => 'postgres'
            }
          end

          def errors
            [PG::ConnectionBad]
          end

          def default_port
            5432
          end

          def environment
            {
              'PGPORT' => DockerCompose::DatabaseService::PORT.to_s,
              'POSTGRES_PASSWORD' => 'password',
              'PGDATA' => data_dir
            }
          end

          def data_dir
            '/var/pgdata'
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
orchestration-0.3.17 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.16 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.15 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.14 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.13 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.12 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.11 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.10 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.9 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.8 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.7 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.6 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.5 lib/orchestration/services/database/adapters/postgresql.rb
orchestration-0.3.4 lib/orchestration/services/database/adapters/postgresql.rb