mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-18 07:26:51 +00:00
re-arrange docker-compose services
This commit is contained in:
parent
f19be9183c
commit
eabbe53aa6
@ -1,11 +1,21 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
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:
|
private-gpt:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile.external
|
dockerfile: Dockerfile.external
|
||||||
entrypoint: ./docker-entrypoint.sh
|
entrypoint: ./docker-entrypoint.sh
|
||||||
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
@ -43,17 +53,6 @@ services:
|
|||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user