-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
unit:
build: .
working_dir: /app
environment:
COMPOSER_CACHE_DIR: /tmp/composer-cache
volumes:
- ./:/app:delegated
command: >-
sh -lc "composer install --no-interaction --prefer-dist && composer test-unit"
tty: true
stdin_open: true
integration:
build: .
working_dir: /app
# Carga variables del .env del proyecto (host)
env_file:
- .env
environment:
# En el contenedor, usaremos esta ruta estándar
VERIFACTU_CERT_PATH: /certs/cert.p12
COMPOSER_CACHE_DIR: /tmp/composer-cache
volumes:
- ./:/app:delegated
# Sustituye con ruta del host desde .env (Compose lee .env para la sustitución)
- ${VERIFACTU_CERT_PATH}:/certs/cert.p12:ro
command: >-
sh -lc "composer install --no-interaction --prefer-dist && composer test-sandbox"
tty: true
stdin_open: true