mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Merge remote changes and resolve conflicts
This commit is contained in:
@@ -9,8 +9,6 @@ services:
|
|||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
||||||
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
|
|
||||||
- certbot-etc:/etc/letsencrypt
|
- certbot-etc:/etc/letsencrypt
|
||||||
- certbot-var:/var/lib/letsencrypt
|
- certbot-var:/var/lib/letsencrypt
|
||||||
- webroot:/var/www/html
|
- webroot:/var/www/html
|
||||||
|
@@ -2,7 +2,7 @@ FROM node:18-alpine as build
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files from frontend directory
|
# Copy package files
|
||||||
COPY frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
@@ -14,16 +14,17 @@ RUN npm run build
|
|||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
# Remove default nginx config
|
||||||
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Copy built files
|
# Copy built files
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
# Create nginx config directory
|
|
||||||
RUN mkdir -p /etc/nginx/conf.d
|
|
||||||
|
|
||||||
# Copy nginx configuration
|
# Copy nginx configuration
|
||||||
|
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Create required directories and set permissions
|
# Create required directories
|
||||||
RUN mkdir -p /var/cache/nginx \
|
RUN mkdir -p /var/cache/nginx \
|
||||||
/var/cache/nginx/client_temp \
|
/var/cache/nginx/client_temp \
|
||||||
/var/cache/nginx/proxy_temp \
|
/var/cache/nginx/proxy_temp \
|
||||||
@@ -31,14 +32,9 @@ RUN mkdir -p /var/cache/nginx \
|
|||||||
/var/cache/nginx/uwsgi_temp \
|
/var/cache/nginx/uwsgi_temp \
|
||||||
/var/cache/nginx/scgi_temp \
|
/var/cache/nginx/scgi_temp \
|
||||||
/var/run \
|
/var/run \
|
||||||
&& chmod 777 /var/cache/nginx \
|
/etc/letsencrypt \
|
||||||
/var/cache/nginx/client_temp \
|
/var/www/html
|
||||||
/var/cache/nginx/proxy_temp \
|
|
||||||
/var/cache/nginx/fastcgi_temp \
|
|
||||||
/var/cache/nginx/uwsgi_temp \
|
|
||||||
/var/cache/nginx/scgi_temp \
|
|
||||||
/var/run
|
|
||||||
|
|
||||||
# Remove user directive from nginx config
|
EXPOSE 80 443
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user