diff --git a/backend/storage/.env b/backend/storage/.env index 92445fe..5e002af 100755 --- a/backend/storage/.env +++ b/backend/storage/.env @@ -1,4 +1,4 @@ -DATABASE_HOST=mythical_database +DATABASE_HOST=mythicalclient_database DATABASE_PORT=3306 DATABASE_USER=mythical DATABASE_PASSWORD="Pizza2007!" diff --git a/docker-compose.yml b/docker-compose.yml index 3416f1b..e9a989e 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: context: ./frontend dockerfile: Dockerfile container_name: mythicalclient_frontend + restart: unless-stopped volumes: - ./frontend:/app - /app/node_modules @@ -17,6 +18,7 @@ services: context: ./backend dockerfile: Dockerfile container_name: mythicalclient_backend + restart: unless-stopped volumes: - ./backend:/var/www/html - ./backend/storage/packages:/var/www/html/storage/packages @@ -29,6 +31,7 @@ services: mythicalclient_nginx: image: nginx:alpine container_name: mythicalclient_nginx + restart: unless-stopped ports: - "8080:80" volumes: diff --git a/framework.conf b/framework.conf index ab8decd..d075fdd 100755 --- a/framework.conf +++ b/framework.conf @@ -14,14 +14,14 @@ server { # General PHP script handling (via PHP-FPM) location ~ \.php$ { include fastcgi_params; - fastcgi_pass mythical_backend:9000; # PHP-FPM is running here + fastcgi_pass mythicalclient_backend:9000; # PHP-FPM is running here fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Location for the frontend location / { - proxy_pass http://mythical_frontend:80; # Replace 'frontend:80' with your frontend service + proxy_pass http://mythicalclient_frontend:80; # Replace 'frontend:80' with your frontend service proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;