lib/mobilis/docker_compose_projector.rb in mobilis-0.0.3 vs lib/mobilis/docker_compose_projector.rb in mobilis-0.0.4
- old
+ new
@@ -71,13 +71,10 @@
attributes = @project.attributes
keyname = "#{service.name}_internal_port_no".to_sym
{
"image" => "postgres:14.1-alpine",
"restart" => "always",
- "environment" => [
- "POSTGRES_USER=#{ service.name }",
- "POSTGRES_PASSWORD=#{ service.password }"
- ],
+ "environment" => service.env_vars,
"ports" => ["#{ attributes[keyname] }:5432"],
"volumes" => [
"#{ service.data_dir }:/var/lib/postgresql/data"
],
}