mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
re-arrange docker-compose services
This commit is contained in:
parent
f19be9183c
commit
eabbe53aa6
1 changed files with 11 additions and 12 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue