fix: Remove hardcoded container_name and obsolete version to allow multiple deployments
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# PHP-FPM Application Server
|
# PHP-FPM Application Server
|
||||||
@@ -6,7 +5,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/php/Dockerfile
|
dockerfile: docker/php/Dockerfile
|
||||||
container_name: laravel_app
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
@@ -21,7 +19,6 @@ services:
|
|||||||
# Nginx Web Server
|
# Nginx Web Server
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: laravel_nginx
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT:-8080}:80"
|
- "${APP_PORT:-8080}:80"
|
||||||
@@ -43,7 +40,6 @@ services:
|
|||||||
# MySQL Database
|
# MySQL Database
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
container_name: laravel_mysql
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${DB_PORT:-3306}:3306"
|
- "${DB_PORT:-3306}:3306"
|
||||||
@@ -63,7 +59,6 @@ services:
|
|||||||
# PostgreSQL Database
|
# PostgreSQL Database
|
||||||
pgsql:
|
pgsql:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: laravel_pgsql
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${DB_PORT:-5432}:5432"
|
- "${DB_PORT:-5432}:5432"
|
||||||
@@ -83,7 +78,6 @@ services:
|
|||||||
# This is a dummy service to enable the sqlite profile
|
# This is a dummy service to enable the sqlite profile
|
||||||
sqlite:
|
sqlite:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
container_name: laravel_sqlite_init
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./src/database:/data
|
- ./src/database:/data
|
||||||
command: sh -c "touch /data/database.sqlite && chmod 666 /data/database.sqlite"
|
command: sh -c "touch /data/database.sqlite && chmod 666 /data/database.sqlite"
|
||||||
@@ -93,7 +87,6 @@ services:
|
|||||||
# Redis Cache
|
# Redis Cache
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: laravel_redis
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${REDIS_PORT:-6379}:6379"
|
- "${REDIS_PORT:-6379}:6379"
|
||||||
@@ -105,7 +98,6 @@ services:
|
|||||||
# Node.js for frontend assets (Vite/Mix)
|
# Node.js for frontend assets (Vite/Mix)
|
||||||
node:
|
node:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
container_name: laravel_node
|
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- ./src:/var/www/html
|
- ./src:/var/www/html
|
||||||
@@ -120,7 +112,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/php/Dockerfile
|
dockerfile: docker/php/Dockerfile
|
||||||
container_name: laravel_queue
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
@@ -140,7 +131,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/php/Dockerfile
|
dockerfile: docker/php/Dockerfile
|
||||||
container_name: laravel_scheduler
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
@@ -156,7 +146,6 @@ services:
|
|||||||
# Mailpit for local email testing
|
# Mailpit for local email testing
|
||||||
mailpit:
|
mailpit:
|
||||||
image: axllent/mailpit
|
image: axllent/mailpit
|
||||||
container_name: laravel_mailpit
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${MAIL_PORT:-1025}:1025"
|
- "${MAIL_PORT:-1025}:1025"
|
||||||
|
|||||||
Reference in New Issue
Block a user