services:
# ==========================================
# APLICACIÓN 1 - Ejemplo con autenticación
# ==========================================
app_vulnerable_1:
build:
context: ./apps/app1
dockerfile: Dockerfile
container_name: archery_app1
hostname: app1
networks:
testbed_network:
ipv4_address: 172.20.0.10
ports:
- "8001:8000"
environment:
- APP_NAME=VulnerableApp1
- DEBUG=false
- SECRET_KEY=change_this_secret_key_123
- DATABASE_URL=postgresql://app1user:app1pass@postgres_app1:5432/app1db
- REDIS_URL=redis://redis_shared:6379/0
volumes:
- app1_data:/var/lib/app1/data
- app1_logs:/var/log/app1
- ./config/app1.conf:/etc/app1/config.conf:ro
depends_on:
postgres_app1:
condition: service_healthy
redis_shared:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
interval: 30s
timeout: 10s
retries: 3
start_period: 40s