API & consumers now are executed using docker

This commit is contained in:
theUniC
2022-03-09 19:27:50 +01:00
parent 329060db0e
commit 678cba5ab7
2 changed files with 5 additions and 2 deletions

View File

@@ -41,4 +41,4 @@ infrastructure:
.PHONY: stop
stop:
$(DOCKER_COMPOSE) stop
$(DOCKER_COMPOSE) --profile async-events --profile async-commands --profile async-projections stop

View File

@@ -1,4 +1,4 @@
version: '3.8'
version: '3.9'
services:
redis:
@@ -29,6 +29,7 @@ services:
- ./:/var/www/html
async-commands-consumer:
build: .docker/php-cli
profiles: ["async-commands"]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html
@@ -37,6 +38,7 @@ services:
- ./:/var/www/html
async-events-consumer:
build: .docker/php-cli
profiles: ["async-events"]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html
@@ -45,6 +47,7 @@ services:
- ./:/var/www/html
async-projections-consumer:
build: .docker/php-cli
profiles: ["async-projections"]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html