Skip to content

Extract docker compose services into separated packages?

SHORT DESCRIPTION

Currently all docker compose services are built in in same docker-compose.yml file, like the database, logs, http services and others, but this the type of services that are not specific to a PHP stack, thus separating them into their own packages will allow us to reuse them when building other docker stacks.

Public Api Impact

Should not be affected once the docker-compose.yml will continue to be executed by the bash script ./bin/server that will take care of the details of managing all the docker stack for us.

PROPOSAL

Services to be extracted:

  • cache
  • database
  • http
  • logs:
    • logs-pipeline
    • logs-storage
    • logs-dashboard
  • queue
  • dev-cli
  • database-cli
  • cache-cli

Each of this services will have their own package that will be required then by this Php Docker Stack.

The bash script ./bin/server or the ones it depends on will then coordinate all docker compose services, hopefully without a need to break the current way we interact with them.

RELATED TO

N/A

DEPENDS ON

N/A

LINKS

N/A