add Docker configuration files and deployment guide

This commit is contained in:
Frank John Begornia
2025-12-12 01:06:06 +08:00
parent 382e68769e
commit b5443ddcee
5 changed files with 281 additions and 0 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: merchbay_admin_app
restart: unless-stopped
ports:
- "8080:80"
environment:
- APP_ENV=production
- APP_DEBUG=false
- DB_CONNECTION=mysql
- DB_HOST=${DB_HOST:-localhost}
- DB_PORT=${DB_PORT:-3306}
- DB_DATABASE=${DB_DATABASE:-merchbay_admin}
- DB_USERNAME=${DB_USERNAME:-root}
- DB_PASSWORD=${DB_PASSWORD:-}
volumes:
- ./storage:/var/www/html/storage
- ./public/uploads:/var/www/html/public/uploads
network_mode: bridge