fix(infra): docker compose service dependencies (#4871)
This commit is contained in:
parent
a8bf6c0611
commit
a9d35b7f93
1 changed files with 22 additions and 4 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
services:
|
services:
|
||||||
# This service runs the backend app in the port 3170
|
# This service runs the backend app in the port 3170
|
||||||
hoppscotch-backend:
|
hoppscotch-backend:
|
||||||
profiles: ["backend", "just-backend"]
|
profiles: ["backend", "just-backend", "app", "admin"]
|
||||||
container_name: hoppscotch-backend
|
container_name: hoppscotch-backend
|
||||||
build:
|
build:
|
||||||
dockerfile: prod.Dockerfile
|
dockerfile: prod.Dockerfile
|
||||||
|
|
@ -94,7 +94,7 @@ services:
|
||||||
|
|
||||||
# The service that spins up all services at once in one container
|
# The service that spins up all services at once in one container
|
||||||
hoppscotch-aio:
|
hoppscotch-aio:
|
||||||
profiles: ["default", "default-no-db"]
|
profiles: ["default"]
|
||||||
container_name: hoppscotch-aio
|
container_name: hoppscotch-aio
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
|
|
@ -113,11 +113,29 @@ services:
|
||||||
- "3200:3200"
|
- "3200:3200"
|
||||||
- "3080:80"
|
- "3080:80"
|
||||||
|
|
||||||
|
# Profile with no database dependency (purely developmental)
|
||||||
|
hoppscotch-aio-no-db:
|
||||||
|
profiles: ["default-no-db"]
|
||||||
|
container_name: hoppscotch-aio
|
||||||
|
restart: unless-stopped
|
||||||
|
build:
|
||||||
|
dockerfile: prod.Dockerfile
|
||||||
|
context: .
|
||||||
|
target: aio
|
||||||
|
env_file:
|
||||||
|
- ./.env
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "3100:3100"
|
||||||
|
- "3170:3170"
|
||||||
|
- "3200:3200"
|
||||||
|
- "3080:80"
|
||||||
|
|
||||||
# The preset DB service, you can delete/comment the below lines if
|
# The preset DB service, you can delete/comment the below lines if
|
||||||
# you are using an external postgres instance
|
# you are using an external postgres instance
|
||||||
# This will be exposed at port 5432
|
# This will be exposed at port 5432
|
||||||
hoppscotch-db:
|
hoppscotch-db:
|
||||||
profiles: ["default", "database", "just-backend"]
|
profiles: ["default", "database", "just-backend", "backend", "app", "admin", "deprecated"]
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
|
@ -140,7 +158,7 @@ services:
|
||||||
|
|
||||||
# Auto-migration service - handles database migrations automatically
|
# Auto-migration service - handles database migrations automatically
|
||||||
hoppscotch-migrate:
|
hoppscotch-migrate:
|
||||||
profiles: ["default", "just-backend"]
|
profiles: ["default", "just-backend", "backend", "app", "admin"]
|
||||||
build:
|
build:
|
||||||
dockerfile: prod.Dockerfile
|
dockerfile: prod.Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue