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

Naming convention for services cannot include _ or - / didn't see it mentioned in docs #1500

Closed
hoIIer opened this issue Jun 2, 2015 · 2 comments

Comments

@hoIIer
Copy link

hoIIer commented Jun 2, 2015

Hello,

I am using compose in microservice setup and it would be ideal to have service names such as "service-one", "service_two" etc but apparently that is not allowed and also I didn't see it in the docs...

Example of how I used it currently which shows service names mushed together

contentservicedb:
  image: postgres:latest
contentservice:
  extends:
    file: ../content/docker-compose.yml
    service: web
  links:
    - contentservicedb

usersservicedb:
  image: postgres:latest
usersservice:
  extends:
    file: ../users/docker-compose.yml
    service: web
  links:
    - usersservicedb

gatekeeperservice:
  image: clusterhq/twisted

Just wondering if it will ever be possible to include hyphen or underscore for this use case...

Thanks!

@funkyfuture
Copy link

my more or less educated guess is that in the next release both character will be valid as compose will handle containers via labels.

@aanand
Copy link

aanand commented Jun 5, 2015

Closing in favour of #1519

@aanand aanand closed this as completed Jun 5, 2015
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

No branches or pull requests

3 participants