Skip to content

Commit

Permalink
fix(deployment): correct volume mapping for SSL certificates in proxy…
Browse files Browse the repository at this point in the history
… setup
  • Loading branch information
yarlson committed Jan 12, 2025
1 parent f994f5f commit 57ea7a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (d *Deployment) Deploy(ctx context.Context, project string, cfg *config.Con
spinner.Complete()

// Create volumes
cfg.Volumes = append(cfg.Volumes, "certs")
if err := d.createVolumes(ctx, project, cfg.Volumes); err != nil {
return fmt.Errorf("failed to create volumes: %w", err)
}
Expand Down Expand Up @@ -193,7 +194,7 @@ func (d *Deployment) startProxy(ctx context.Context, project string, cfg *config
Image: "yarlson/zero-nginx:latest",
Port: 80,
Volumes: []string{
projectPath + "/:/etc/nginx/ssl",
"certs:/etc/nginx/ssl",
configPath + ":/etc/nginx/conf.d",
},
Env: []string{
Expand Down

0 comments on commit 57ea7a5

Please sign in to comment.