mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-07-20 18:29:05 +00:00
Add configuration for nginx
This commit is contained in:
parent
ba71a39971
commit
7cfbad8b59
11
Dockerfile.nginx
Normal file
11
Dockerfile.nginx
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Use the official Nginx image as the base
|
||||||
|
FROM nginx:latest
|
||||||
|
|
||||||
|
# Copy the custom Nginx configuration file
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
# Expose port 80 for incoming HTTP requests
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
# Start Nginx in the foreground
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
@ -44,5 +44,16 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5433:${DB_PORT}
|
- 5433:${DB_PORT}
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.nginx
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
volumes:
|
||||||
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
depends_on:
|
||||||
|
- private-gpt
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres-data:
|
postgres-data:
|
||||||
|
0
nginx/nginx.conf
Normal file
0
nginx/nginx.conf
Normal file
Loading…
Reference in New Issue
Block a user