Environment Deployment

Deploy Nginx, SSL certificates, Docker services, security groups, and production runtime environments.

Resource List

AI prompts, scripts, and code that can be copied and reused.

yaml

Docker Compose LAMP Stack

Use this resource during the Environment Deployment stage. Adapt it to your project requirements and validate the result before production use.

Docker Compose LAMP Stack

A Docker Compose resource for quickly starting a PHP, Apache, MySQL, and phpMyAdmin development environment.

How to Use

Adapt the resource to your project background, target users, budget, deployment environment, and security requirements. Validate the result in a test environment before using it in production.

Original Notes

πŸ”§ Script |: 2026-07-02 # Docker Compose LAMP ## Docker Compose LAMP yaml version: '3.8' services: nginx: image: nginx:alpine ports: - "80:80" - "443:443" volumes: -./nginx.conf:/etc/nginx/nginx.conf -./www:/var/www/html depends_on: - php php: image: php:8.2-fpm volumes: -./www:/var/www/html environment: - DB_HOST=mysql mysql: image: mysql:8.0 environment: MYSQL_ROOT_PASSWORD: rootpass MYSQL_DATABASE: appdb volumes: - db_data:/var/lib/mysql volumes: db_data:

nginx

Nginx Site Configuration

Use this resource during the Environment Deployment stage. Adapt it to your project requirements and validate the result before production use.

Nginx Site Configuration

An Nginx configuration reference for static sites, PHP applications, reverse proxy setups, HTTPS, and cache headers.

How to Use

Adapt the resource to your project background, target users, budget, deployment environment, and security requirements. Validate the result in a test environment before using it in production.

Original Notes

πŸ”§ Script |: 2026-07-02 # Nginx ## Nginx nginx server { listen 80; server_name example.com www.example.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name example.com www.example.com; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; root /var/www/example.com; index index.html; location / { try_files $uri $uri/ /index.html; } location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 365d; add_header Cache-Control "public, immutable"; } }