Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Actually fix this time FR FR
  • Loading branch information
NaysKutzu committed Nov 24, 2024
1 parent eb6f698 commit 65413cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/storage/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DATABASE_HOST=mythical_database
DATABASE_HOST=mythicalclient_database
DATABASE_PORT=3306
DATABASE_USER=mythical
DATABASE_PASSWORD="Pizza2007!"
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
context: ./frontend
dockerfile: Dockerfile
container_name: mythicalclient_frontend
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules
Expand All @@ -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
Expand All @@ -29,6 +31,7 @@ services:
mythicalclient_nginx:
image: nginx:alpine
container_name: mythicalclient_nginx
restart: unless-stopped
ports:
- "8080:80"
volumes:
Expand Down
4 changes: 2 additions & 2 deletions framework.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65413cc

Please sign in to comment.