Skip to content

A self-hosted media server and file management system

fix nginx env

aminnausin10b4a48fab82
diff --git a/Dockerfile b/Dockerfile
index 329adde4..e92dfe20 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -46,7 +46,7 @@ WORKDIR /var/www/html
COPY . .
-RUN composer install --optimize-autoloader --no-interaction --no-scripts
+RUN composer install --no-dev --optimize-autoloader --no-interaction --no-scripts
RUN chmod o+w ./storage/ -R
RUN chmod o+w ./public/ -R
diff --git a/docker-compose.yaml b/docker-compose.yaml
index f3cd3cfe..1b48ce03 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -86,11 +86,13 @@ services:
- app-public:/var/www/html/public
- ./docker/nginx/entrypoint.sh:/entrypoint.sh
ports:
- - '8080:8080'
+ - '${APP_PORT}:${APP_PORT}'
expose:
- - '8080'
+ - ${APP_PORT}
depends_on:
- app
+ env_file:
+ - .env
networks:
- docker-network
db: