This Repository is used together with SOA based projects, consisting of microservices, built on laravel-starter-tpl.
The purpose of this repository is to contain Docker services that can be shared across all microservices in one domain.
- macOS Monterey or Linux
- Docker 20.10 or newer
- Cloned, configured and running docker-shared-services, to support system-wide DNS, Routing and SSL support via Traefik.
Warning: Repository with docker-shared-services should be configured, up and running before
-
Clone repository:
$ git clone [email protected]:wayofdev/docker-project-services.git
-
Generate default .env file:
# With custom namespace provided, it will be used to prefix all services # in Docker network for current project $ make env COMPOSE_PROJECT_NAME=bfq # Default project namespace will be used - **wod** $ make env
Edit the created .env file if necessary. You may want to change the default domain.
-
(Optional) Enable the
docker-compose.override.yaml
file to run extra services, like pg-admin and others:$ make override
-
Run this repository:
$ make up
-
Check that everything works:
$ make ps $ make logs
You can check Makefile
to get full list of commands for local testing. For testing, you can use these commands to test whole role or separate tasks:
Testing docker-compose using dcgoss:
$ make test
This repository was created in 2022 by lotyp / wayofdev.