Add Docker and deployment configurations for development and production environments
Some checks failed
Deploy Production (crewsportswear.com) / deploy (push) Failing after 5m18s

This commit is contained in:
Frank John Begornia
2025-12-31 00:23:44 +08:00
parent 71e1fca6fe
commit 8fc0b1076a
16 changed files with 746 additions and 0 deletions

81
docker-compose.local.yml Normal file
View File

@@ -0,0 +1,81 @@
services:
db:
image: mariadb:10.6
platform: linux/arm64
container_name: crewsportswear_db_local
restart: unless-stopped
environment:
MYSQL_DATABASE: crewsportswear
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: crewsportswear
MYSQL_PASSWORD: secret
ports:
- "3307:3306"
volumes:
- db_data:/var/lib/mysql
networks:
- crewsportswear-local
app:
build:
context: .
dockerfile: Dockerfile
container_name: crewsportswear_app_local
restart: unless-stopped
ports:
- "8082:80"
environment:
- APP_ENV=local
- APP_DEBUG=true
- APP_URL=http://localhost:8082
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=crewsportswear
- DB_USERNAME=crewsportswear
- DB_PASSWORD=secret
- PROD_PRIVATE=http://localhost:8082
- IMAGES_URL=http://localhost:8082
- UPLOAD_URL=http://localhost:8082/uploads/
- MAIL_DRIVER=log
- MAIL_HOST=localhost
- MAIL_PORT=1025
- MAIL_USERNAME=null
- MAIL_PASSWORD=null
- MAIL_ENCRYPTION=null
- CAPTCHA_SITE_KEY=test_key
- CAPTCHA_SECRET_KEY=test_secret
- ANALYTICS_SITE_ID=
- ANALYTICS_CLIENT_ID=
- ANALYTICS_SERVICE_EMAIL=
volumes:
- ./:/var/www/html
- ./storage:/var/www/html/storage
- ./public/uploads:/var/www/html/public/uploads
depends_on:
- db
networks:
- crewsportswear-local
phpmyadmin:
image: arm64v8/phpmyadmin
platform: linux/arm64
container_name: crewsportswear_phpmyadmin
restart: unless-stopped
ports:
- "8083:80"
environment:
PMA_HOST: db
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: root
depends_on:
- db
networks:
- crewsportswear-local
networks:
crewsportswear-local:
driver: bridge
volumes:
db_data: