Skip to content

Commit

Permalink
Merge pull request #466 from jesusantguerrero/feat/coolify-nginx
Browse files Browse the repository at this point in the history
Feat/coolify nginx
  • Loading branch information
jesusantguerrero authored Sep 13, 2024
2 parents 7d8fa1b + 0b57b55 commit dff8891
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions coolify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ENV user $user
ENV uid $uid
ENV TZ $TZ
# Install system dependencies
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get update && apt-get install -y \
git \
curl \
Expand All @@ -31,7 +32,8 @@ RUN apt-get update && apt-get install -y \
zip \
unzip \
cron \
default-mysql-client
default-mysql-client \
nodejs
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && \
# Install PHP extensions
Expand All @@ -49,9 +51,9 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# RUN mkdir -p /home/$user/.composer && \
# chown -R $user:$user /home/$user && \
# chown -R $user:$user /var/www && \
# chown -R www-data:www-data /var/www
RUN chown -R www-data:www-data /var/www

# USER $user
USER www-data

RUN composer install --ignore-platform-reqs --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist

Expand Down
1 change: 1 addition & 0 deletions docker-compose.coolify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
restart: unless-stopped
volumes:
- ./:/var/www
- ./storage:/var/www/storage
environment:
DEBUG: "debug"
# Change the following value if you know how it works.
Expand Down

0 comments on commit dff8891

Please sign in to comment.