- Updated `tests.yml` to set `COMPOSE_PROJECT_NAME` dynamically based on `github.run_id` and `github.run_attempt`. - Updated `docker-compose.ci.yml` to use dynamic container names with `COMPOSE_PROJECT_NAME`.
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
services:
|
|
traefik:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-traefik"
|
|
|
|
redis:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-redis"
|
|
|
|
mysql-debug:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-mysql-debug"
|
|
|
|
edge-broker:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-edge-broker"
|
|
labels:
|
|
- "traefik.http.routers.edge-broker-local-ci.rule=PathPrefix(`/api/edge-broker`)"
|
|
- "traefik.http.routers.edge-broker-local-ci.entrypoints=web"
|
|
- "traefik.http.routers.edge-broker-local-ci.middlewares=secure-headers@file,edge-broker-strip-local"
|
|
- "traefik.http.routers.edge-broker-local-ci.priority=190"
|
|
- "traefik.http.routers.edge-broker-local-ci.service=edge-broker"
|
|
|
|
caddy:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-caddy"
|
|
labels:
|
|
- "traefik.http.routers.local-api-ci.rule=PathPrefix(`/api`)"
|
|
- "traefik.http.routers.local-api-ci.entrypoints=web"
|
|
- "traefik.http.routers.local-api-ci.middlewares=strip-api-prefix@file,secure-headers@file"
|
|
- "traefik.http.routers.local-api-ci.priority=90"
|
|
- "traefik.http.routers.local-api-ci.service=caddy"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
php1:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-php1"
|
|
environment:
|
|
AUTO_COMPOSER_INSTALL: "false"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
php2:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-php2"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
php3:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-php3"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
php4:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-php4"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
php5:
|
|
container_name: "${COMPOSE_PROJECT_NAME:-api}-php5"
|
|
volumes:
|
|
- ci_php_app:/var/www/html
|
|
|
|
volumes:
|
|
ci_php_app:
|