Created
February 16, 2026 21:16
-
-
Save edsonmgoz/e0795eda53be77a6f840ebf7f0776ba6 to your computer and use it in GitHub Desktop.
Stack de servicios con docker para demo en Lazydocker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| reverse-proxy: | |
| image: nginx:alpine | |
| container_name: demo-nginx | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
| depends_on: | |
| - whoami | |
| restart: unless-stopped | |
| whoami: | |
| image: traefik/whoami:v1.10.1 | |
| container_name: demo-whoami | |
| expose: | |
| - "80" | |
| restart: unless-stopped | |
| redis: | |
| image: redis:7-alpine | |
| container_name: demo-redis | |
| ports: | |
| - "6379:6379" | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 5s | |
| timeout: 2s | |
| retries: 10 | |
| restart: unless-stopped | |
| postgres: | |
| image: postgres:16-alpine | |
| container_name: demo-postgres | |
| environment: | |
| POSTGRES_PASSWORD: demo | |
| POSTGRES_USER: demo | |
| POSTGRES_DB: demo | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - demo_pg:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U demo -d demo"] | |
| interval: 5s | |
| timeout: 3s | |
| retries: 20 | |
| restart: unless-stopped | |
| adminer: | |
| image: adminer:4 | |
| container_name: demo-adminer | |
| ports: | |
| - "8081:8080" | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| restart: unless-stopped | |
| volumes: | |
| demo_pg: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment