mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-17 23:16:55 +00:00
re-arrange docker-compose services
This commit is contained in:
parent
f19be9183c
commit
eabbe53aa6
@ -1,11 +1,21 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.nginx
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
depends_on:
|
||||
- private-gpt
|
||||
|
||||
private-gpt:
|
||||
build:
|
||||
dockerfile: Dockerfile.external
|
||||
entrypoint: ./docker-entrypoint.sh
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
@ -43,17 +53,6 @@ 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:
|
||||
|
Loading…
Reference in New Issue
Block a user