diff --git a/Caddyfile b/Caddyfile index 73c250dc..9d67f2b3 100644 --- a/Caddyfile +++ b/Caddyfile @@ -6,7 +6,7 @@ } # The domain name of your server -localhost { +{$SERVER_NAME:localhost} { root * public/ encode zstd gzip php_server { diff --git a/Caddyfile.dev b/Caddyfile.dev index 78e72e8c..bfc64530 100644 --- a/Caddyfile.dev +++ b/Caddyfile.dev @@ -6,7 +6,7 @@ } # The domain name of your server -localhost { +{$SERVER_NAME:localhost} { # Set the webroot to the public/ dir root * public/ # Enable compression (optional) diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index 775fc150..702611bd 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -1,4 +1,3 @@ -version: "3.7" services: web: build: @@ -16,6 +15,7 @@ services: networks: - loger environment: + server_name: ${SERVER_NAME:-test.apps.neatlancer.com}, php:80 DEBUG: "debug" # Change the following value if you know how it works. # MERCURE_TRANSPORT_URL: "bolt://mercure.db" @@ -26,7 +26,7 @@ services: cors_origins "*" anonymous ports: - - "80:3000" + - "3000:80" networks: loger: - external: true + driver: bridge