Skip to content

Commit

Permalink
Merge pull request #464 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 2d1921b + 939342b commit 96d1737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions coolify.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG NODE_VERSION=20.9.0
ARG PHP_VERSION=8.3.11
FROM node:${NODE_VERSION}-alpine as static-assets

RUN apk add --no-cache gcompat
WORKDIR /app
WORKDIR /var/www

COPY . /app
COPY . /var/www

RUN yarn install --frozen-lockfile && yarn && yarn build && npm prune --production

ARG PHP_VERSION=8.3.11
FROM php:${PHP_VERSION}-fpm as server

ARG user
Expand Down Expand Up @@ -55,11 +55,11 @@ USER $user

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

COPY --from=static-assets --chown=9999:9999 /app/public/build ./public/build
COPY --from=static-assets --chown=9999:9999 /var/www/public/build ./public/build

# RUN php artisan route:cache
# RUN php artisan view:cache

RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
RUN echo "alias logs='tail -f storage/logs/laravel.log'" >>/etc/bash.bashrc
RUN echo "alias logs='tail -f storage/logs/laravel.log'" >>/etc/bash.bashrc
4 changes: 1 addition & 3 deletions docker-compose.coolify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
nginx:
image: nginx:alpine
container_name: neatlancer-nginx
container_name: loger-nginx
restart: unless-stopped
ports:
- 8088:80
Expand All @@ -14,8 +14,6 @@ services:
- VIRTUAL_HOST=${VIRTUAL_APP_HOST}
- LETSENCRYPT_HOST=${VIRTUAL_APP_HOST}
- [email protected]
networks:
- neatlancer
web:
build:
args:
Expand Down

0 comments on commit 96d1737

Please sign in to comment.