feat: Create a Docker Image around the laravel app
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: tap:latest # or build: . if you’re building locally
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: laravel_app
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "81:8080" # host:container
|
||||
|
||||
environment:
|
||||
# --- Laravel Core ---
|
||||
APP_NAME: "Laravel"
|
||||
|
||||
volumes:
|
||||
# - SQLite database file
|
||||
- ./database:/var/www/html/database
|
||||
Reference in New Issue
Block a user