Download the cloudwatch agent from the AWS Official Docs according to your platform.
Assuming that you are running Ubuntu with x86_64 architecture on your EC2
Download the cloudwatch agent from the AWS Official Docs according to your platform.
Assuming that you are running Ubuntu with x86_64 architecture on your EC2
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name example.com; | |
| root /home/user/example.com/public; | |
| add_header X-Frame-Options "SAMEORIGIN"; | |
| add_header X-Content-Type-Options "nosniff"; | |
| index index.php; |
| services: | |
| postgres17: | |
| image: 'public.ecr.aws/docker/library/postgres:17-alpine' | |
| container_name: postgres-17 | |
| restart: unless-stopped | |
| ports: | |
| - "${FORWARD_PGSQL_PORT:-5432}:5432" | |
| volumes: | |
| - pg-17-data:/var/lib/postgresql/data | |
| healthcheck: |
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Run this script without sudo | |
| # bash script_name.sh | |
| INSTALL_TMP_DIR=~/phpstorm-tmp | |
| mkdir -p $INSTALL_TMP_DIR |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
Laravel 10+, Horizon 5.x, Redis/Valkey 7+
Prepare application
http://yourapp.com/horizoninactive on horizon dashboardInstall redis-server
# Install x-code command line tools
xcode-select --install
# Install homebrew itself