Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .env
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
TimeZone=America/New_York
OLS_VERSION=1.8.5
PHP_VERSION=lsphp85
PHPMYADMIN_VERSION=5.2.3
MYSQL_ROOT_PASSWORD=your_root_password
# ========================================
# PRODUCTION ENVIRONMENT (2GB+ Optimized)
# ========================================
TIMEZONE=America/New_York
MYSQL_ROOT_PASSWORD=your_super_secure_root_password_123
MYSQL_DATABASE=wordpress
MYSQL_USER=wordpress
MYSQL_PASSWORD=your_password
MYSQL_PASSWORD=your_secure_app_password_456
DOMAIN=localhost

# ========================================
# HIGH MEMORY SERVERS (8GB+) - UNCOMMENT FOR 8GB+
# ========================================
# MARIADB_MAX_CONNS=400 # More concurrent requests

# ========================================
# IMAGE OVERRIDES (Optional)
# ========================================
# LITESPEED_IMAGE=1.8.5-lsphp85 # Default - Newest version as of 1/15/26(latest refelcts lsphp84)
# LITESPEED_IMAGE=latest # Use once latest reflects a newer version
# MARIADB_IMAGE=mariadb:lts-noble
# REDIS_IMAGE=redis:alpine
22 changes: 14 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
services:
mysql:
image: mariadb:11.4
image: ${MARIADB_IMAGE:-mariadb:lts-noble}
logging:
driver: none
command: ["--max-allowed-packet=512M"]
command:
- "--max-allowed-packet=512M" # Original dev's proven value
- "--max-connections=${MARIADB_MAX_CONNS:-200}" # 200 default, 400 for 8GB+
volumes:
- "./data/db:/var/lib/mysql:delegated"
environment:
Expand All @@ -14,8 +16,9 @@ services:
restart: always
networks:
- default

litespeed:
image: litespeedtech/openlitespeed:${OLS_VERSION}-${PHP_VERSION}
image: litespeedtech/openlitespeed:${LITESPEED_IMAGE:-1.8.5-lsphp85}
container_name: litespeed
env_file:
- .env
Expand All @@ -33,11 +36,12 @@ services:
- 7080:7080
restart: always
environment:
TZ: ${TimeZone}
TZ: ${TIMEZONE}
networks:
- default

phpmyadmin:
image: phpmyadmin/phpmyadmin:${PHPMYADMIN_VERSION}
image: phpmyadmin/phpmyadmin:${PHPMYADMIN_IMAGE:-phpmyadmin:latest}
env_file:
- .env
ports:
Expand All @@ -47,11 +51,12 @@ services:
restart: always
networks:
- default

redis:
image: "redis:alpine"
image: ${REDIS_IMAGE:-redis:alpine}
logging:
driver: none
# command: redis-server --requirepass 8b405f60665e48f795752e534d93b722
# No command = maxmemory 0 (unbounded, your proven production default)
volumes:
- ./redis/data:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
Expand All @@ -60,6 +65,7 @@ services:
restart: always
networks:
- default

networks:
default:
driver: bridge
driver: bridge
Loading