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 - auto import projects and configuration #745

Open
d4rfl0w opened this issue Apr 8, 2024 · 1 comment
Open

Docker - auto import projects and configuration #745

d4rfl0w opened this issue Apr 8, 2024 · 1 comment

Comments

@d4rfl0w
Copy link

d4rfl0w commented Apr 8, 2024

Hi,

How i can auto import projects and configuration (username/password in docker-compose?

This is my file:

   mockserver_aggregator:
        image: castlemock/castlemock
        ports:
            - 8080:8080
        volumes:
            - ./_infrastructure/mockserver/.castlemock:/root/.castlemock
@karldahlgren
Copy link
Collaborator

Hi @d4rfl0w.
There are mainly two methods on how to import projects and configurations:

  • Create volume outside the Docker container. By doing this, you can setup the projects and configurations outside the Docker container and then simply reference them when starting the container. I see that you have already defined a volume in your docker-compose file, so the projects and configurations should be loaded from the volume.
  • REST-API: Castle Mock has a REST-API and the documentation for the REST-API can be found in the application (Link to the OpenAPI documentation is on the bottom right corner). You can use the REST-API to load projects and update configurations.

Good luck!
Cheers!

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

2 participants