001package io.ebean.docker.commands; 002 003import io.ebean.docker.container.Container; 004 005import java.util.Properties; 006 007/** 008 * Commands for controlling a postgres docker container. 009 * <p> 010 * References: https://github.com/docker-library/postgres/issues/146 011 */ 012public class PostgresContainer extends BasePostgresContainer implements Container { 013 014 /** 015 * Create Postgres container with configuration from properties. 016 */ 017 public static PostgresContainer create(String pgVersion, Properties properties) { 018 return new PostgresContainer(new PostgresConfig(pgVersion, properties)); 019 } 020 021 public PostgresContainer(PostgresConfig config) { 022 super(config); 023 } 024 025}