With docker compose, you can preserve the volumes you have defined as well as the settings you defined when containers are created.
Docker compose also allows you to run multiple containers at one, e.g. FSI Server together with Solr.
With a single command line you can create and start all your services at once. This offers a more convenient usage of Docker.
In order to use Docker Compose, you need to
- install Docker Compose
- create a docker-compose.yml file which includes all necessary information
You can read more about this on https://docs.docker.com/compose/overview/#compose-documentation.
Install Docker Compose
In order to get started, you need to install Docker Compose first.
You can read more about this here: https://docs.docker.com/compose/install/
Define the services in a compose file
In your project directory, create a docker-compose file that contains all the settings you need to start the FSI Server image.
In this case, we want to embed the following commands in the docker-compose file:
A docker-compose.yml could look like this:
Start Docker Compose
To start and run your entire app, use