Fix Coolify compose networking and local Docker override
This commit is contained in:
@@ -3,10 +3,10 @@ services:
|
||||
build: .
|
||||
container_name: spota-app
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${APP_PORT:-8080}:80"
|
||||
expose:
|
||||
- "80"
|
||||
environment:
|
||||
APP_URL: ${APP_URL:-http://localhost:8080}
|
||||
APP_URL: ${APP_URL:-http://localhost}
|
||||
DB_HOST: ${DB_HOST:-db}
|
||||
DB_USER: ${DB_USER:-spota_user}
|
||||
DB_PASSWORD: ${DB_PASSWORD:-spota_password}
|
||||
@@ -19,8 +19,8 @@ services:
|
||||
PHP_DISPLAY_ERRORS: ${PHP_DISPLAY_ERRORS:-1}
|
||||
FILES_STORAGE_PATH: ${FILES_STORAGE_PATH:-/var/www/html/files}
|
||||
volumes:
|
||||
- ./files:/var/www/html/files
|
||||
- ./img:/var/www/html/img
|
||||
- spota_files:/var/www/html/files
|
||||
- spota_img:/var/www/html/img
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
@@ -35,10 +35,8 @@ services:
|
||||
MYSQL_USER: ${DB_USER:-spota_user}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD:-spota_password}
|
||||
MYSQL_DATABASE: ${DB_NAME:-spota_spotadb}
|
||||
ports:
|
||||
- "${DB_PORT:-3307}:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
- spota_db_data:/var/lib/mysql
|
||||
- ./docker/mysql-init:/docker-entrypoint-initdb.d:ro
|
||||
- ./spota_db:/spota_db:ro
|
||||
healthcheck:
|
||||
@@ -48,4 +46,6 @@ services:
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
spota_db_data:
|
||||
spota_files:
|
||||
spota_img:
|
||||
|
||||
Reference in New Issue
Block a user