PostgresFlyWayDocker
izumi.distage.docker.bundled.PostgresFlyWayDocker
object PostgresFlyWayDocker extends ContainerDef
Example postgres docker with flyway. It's sufficient to apply simple migrations on start. You're encouraged to use this definition as a template and modify it to your needs.
Attributes
- Graph
-
- Supertypes
- Self type
-
PostgresFlyWayDocker.type
Members list
Type members
Classlikes
final case class Cfg(flyWaySqlPath: Option[String] = ..., user: String = ..., password: String = ..., database: String = ..., schema: String = ...)
Value parameters
- flyWaySqlPath
-
directory with the migrations;
Nonecopies thesqlresource directory of the classpath into the container
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object Cfg
object FlyWay extends ContainerDef
Attributes
- Supertypes
- Self type
-
FlyWay.type
object FlyWayNetwork extends ContainerNetworkDef
Attributes
- Supertypes
- Self type
-
FlyWayNetwork.type
Inherited and Abstract types
type Tag
Attributes
- Inherited from:
- ContainerDef
Value members
Inherited methods
Attributes
- Inherited from:
- ContainerDef
For binding in ModuleDef:
For binding in ModuleDef:
object KafkaDocker extends ContainerDef
object ZookeeperDocker extends ContainerDef
make[KafkaDocker.Container].fromResource {
KafkaDocker
.make[F]
.dependOnContainer(ZookeeperDocker)
}
To kill all containers spawned by distage, use the following command:
docker rm -f $(docker ps -q -a -f 'label=distage.type')
Attributes
- Inherited from:
- ContainerDef
Concrete fields
Inherited fields
Attributes
- Inherited from:
- ContainerDef
In this article