mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-07-19 01:37:11 +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;"]
|
@ -43,6 +43,17 @@ services:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 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:
|
||||
postgres-data:
|
||||
|
0
nginx/nginx.conf
Normal file
0
nginx/nginx.conf
Normal file
Loading…
Reference in New Issue
Block a user