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

docker: fix default network name in docker-compose.yml #10479

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

emersion
Copy link
Member

If omitted, the project name is automatically deduced from the parent directory name. This was working fine for container names because we were explicitly defining their names, but the network name was left unspecified. osrdyne default config depends on the network name being "osrd_default", but that wasn't the case when the parent directory wasn't named "osrd".

Explicitly set the project name to fix this. Drop explicit names for container names, since the default values should be fine now.

@emersion emersion requested a review from a team as a code owner January 21, 2025 16:33
@Khoyo
Copy link
Contributor

Khoyo commented Jan 21, 2025

I'm fine with specifying the project but can we keep the container names? Otherwise they get named eg. osrd-postgres-1 which isn't pretty

If omitted, the project name is automatically deduced from the
parent directory name. This was working fine for container names
because we were explicitly defining their names, but the network
name was left unspecified. osrdyne default config depends on the
network name being "osrd_default", but that wasn't the case when
the parent directory wasn't named "osrd".

Explicitly set the project name to fix this.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/docker-default-net-name branch from fcfb1ee to 4c458d2 Compare January 22, 2025 08:29
@emersion emersion self-assigned this Jan 22, 2025
@emersion
Copy link
Member Author

I'm fine with specifying the project but can we keep the container names? Otherwise they get named eg. osrd-postgres-1 which isn't pretty

Oh, indeed! Dropped that change.

@Khoyo Khoyo added this pull request to the merge queue Jan 22, 2025
Merged via the queue into dev with commit c19ee8e Jan 22, 2025
27 checks passed
@Khoyo Khoyo deleted the emr/docker-default-net-name branch January 22, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants