feat(docker-compose): add base application and worker service configurations

This commit is contained in:
Mauricio Siu 2025-04-12 17:33:52 -06:00
parent 93dd1c3bc1
commit 4ff0a4f9aa
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,5 @@
services:
base-app:
image: nginx:latest # Imagen base
ports:
- "80:80" # Puerto expuesto

13
compose-merge/compose.yml Normal file
View File

@ -0,0 +1,13 @@
services:
web-service:
extends:
file: common-services.yml # Apunta al archivo común
service: base-app # Usa el servicio base
environment:
- ENVIRONMENT=production # Sobrescribe o agrega configuración
worker-service:
extends:
file: common-services.yml
service: base-app
command: ["/bin/sh", "-c", "while true; do echo 'Worker running'; sleep 10; done"] # Cambia el comando