coldgroove
coldgroove
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
but thank you guys for the assistance!
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
classic home page returns i'll test the api routes now
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
I'd renamed the dockerfiles to .bak but i think it was still picking up those for some reason removing those entirely worked tho
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
couldnt even open it?
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
I ve a public directory in the root
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
oh shii, do i need to remove the .dockerignore too?
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
I have this in the deploy logs tho: "Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead."
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
me neither brotha first time trying it
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
returned 403 😄
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
aight lemme try it
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
Oh yeah so no configuration files like Dockerfile whatsoever?
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
Oh man, i really don't know anything about nixpacks and I don't have time for it (this project was for an assessment and I'm at the end of the deadline)
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
i don't think so
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
# Use the official PHP FPM 8.1 image as the base image
FROM php:8.1-fpm

# Install system dependencies and PHP extensions
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libpq-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Set the working directory inside the container
WORKDIR /var/www/html

# Expose port 9000 for PHP-FPM
EXPOSE 9000

# Start PHP-FPM
CMD ["php-fpm"]
# Use the official PHP FPM 8.1 image as the base image
FROM php:8.1-fpm

# Install system dependencies and PHP extensions
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libpq-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Set the working directory inside the container
WORKDIR /var/www/html

# Expose port 9000 for PHP-FPM
EXPOSE 9000

# Start PHP-FPM
CMD ["php-fpm"]
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
np i changed the values keeping the general structure
88 replies
RRailway
Created by coldgroove on 8/4/2023 in #✋|help
Deployment Issue: Nginx Container Not Responding (503 Error)
No, I don't know much about deploying with nixpacks. Do you need the values of the env vars or you want to check the keys only?
88 replies