Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose.yml to use hyphen in all resources names instead of underscore #82

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

denys-chura
Copy link
Collaborator

I noticed that if project_slug containt underscores, then names of docker resources is not consistend because containter names use hyphen as separator (e.g. ds_skeleton_sandbox-celery-beat), so I decied to improve that.

Change list

  • Update name by replacing _ with - so that the prefix for resources names uses a hyphen;
  • Update volumes names to use hyphen.

Unfortunately due to backward incompatibility reasons in compose-spec/compose-go#294 networks and volumes still will have underscore between "name" prefix and resource name itself (e.g. ds-skeleton-sandbox_pg-data). But I think names are more consistent this way anyway.

…ead of underscore

- Update `name` by replacing `_` with `-` so that the prefix for resources names uses a hyphen;
- Update volumes names to use hyphen.
@denys-chura denys-chura self-assigned this Oct 3, 2024
@denys-chura denys-chura merged commit 9580f98 into main Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants