Adiciona configuração inicial da stack Docker para projetos Laravel, incluindo Dockerfile, docker-compose, scripts de gerenciamento e configuração do Nginx.

This commit is contained in:
juancjc
2026-05-11 12:44:24 -05:00
commit 87261e0b07
14 changed files with 1091 additions and 0 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
laravel-stack:
build:
context: .
dockerfile: Dockerfile
container_name: laravel-stack
restart: unless-stopped
ports:
- "3452:80"
volumes:
- /srv/projects/laravel/projects:/home/deploy/projects
- /srv/projects/laravel/nginx-dynamic:/etc/nginx/sites-dynamic
- /srv/projects/laravel/composer-cache:/tmp/composer-cache
- /srv/projects/laravel/npm-cache:/root/.npm
environment:
- PROJECTS_DIR=/home/deploy/projects
- DOMAIN=laravel.juancjc.com.br
- PUBLIC_BASE_URL=https://laravel.juancjc.com.br
- AUTO_DEPLOY_ON_START=false
- PHP_MEMORY_LIMIT=512M
labels:
- "com.laravelstack.managed=true"
networks:
- proxy-net
- postgres-18_default
networks:
proxy-net:
external: true
postgres-18_default:
external: true