Restructure Docker for Dokploy deployment
- Copy app code into PHP image, sync to shared volume at startup - Use named volume (app_code) shared between app and nginx - Build nginx image with embedded config (no bind mounts) - Add .dockerignore to optimize image build - Build context moved to project root for both services
This commit is contained in:
22
.dockerignore
Normal file
22
.dockerignore
Normal file
@@ -0,0 +1,22 @@
|
||||
.git
|
||||
.gitignore
|
||||
.env
|
||||
vendor
|
||||
node_modules
|
||||
storage/logs/*
|
||||
storage/framework/cache/*
|
||||
storage/framework/sessions/*
|
||||
storage/framework/views/*
|
||||
bootstrap/cache/*
|
||||
public/build
|
||||
public/storage
|
||||
db_data
|
||||
redis_data
|
||||
docker-compose.yml
|
||||
docker-compose.override.yml
|
||||
README.md
|
||||
TerManager2_v2.md
|
||||
.idea
|
||||
.vscode
|
||||
*.swp
|
||||
*.swo
|
||||
Reference in New Issue
Block a user