fixed docker-compose.yml, removed attachments volume
This commit is contained in:
@@ -15,13 +15,11 @@ FROM nginx:alpine
|
|||||||
# Remove the default Nginx configuration file
|
# Remove the default Nginx configuration file
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
RUN mkdir -p /app/attachments && chown -R node:node /app/attachments
|
|
||||||
|
|
||||||
# Copy the built files from the builder stage to the Nginx image
|
# Copy the built files from the builder stage to the Nginx image
|
||||||
COPY --from=builder /app/client/dist /usr/share/nginx/html
|
COPY --from=builder /app/client/dist /usr/share/nginx/html
|
||||||
|
|
||||||
# Expose port 80
|
# Expose port 80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
USER node
|
|
||||||
# Start Nginx in the foreground
|
# Start Nginx in the foreground
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -13,8 +13,6 @@ services:
|
|||||||
PG_HOST: db
|
PG_HOST: db
|
||||||
ports:
|
ports:
|
||||||
- "3000"
|
- "3000"
|
||||||
volumes:
|
|
||||||
- attachments:/app/attachments
|
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -59,5 +57,4 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres-data:
|
postgres-data:
|
||||||
attachments:
|
|
||||||
Reference in New Issue
Block a user