feat: add Docker Compose configuration for PostgreSQL and Nginx services

This commit is contained in:
Mauricio Siu
2025-04-12 17:15:07 -06:00
parent b1eca19116
commit d0a2bb4acd
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
services:
db:
image: postgres:latest # Usa la imagen precreada de PostgreSQL
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:

View File

@@ -0,0 +1,10 @@
include:
- db-compose.yaml # Incluye la configuración de la base de datos
services:
web:
image: nginx:latest # Usa la imagen precreada de Nginx
ports:
- "80:80"
depends_on:
- db # Depende del servicio de base de datos