Method: Orchestration::DockerCompose::DatabaseService#definition
- Defined in:
- lib/orchestration/docker_compose/database_service.rb
#definition ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/orchestration/docker_compose/database_service.rb', line 13 def definition return nil unless @config.enabled? return nil if adapter.name == 'sqlite3' { 'image' => adapter.image, 'environment' => adapter.environment, 'networks' => networks }.merge(ports).merge(volumes) end |