Skip to content

Commit

Permalink
Move NGINX-based services out of the API profile (#4416)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Jun 3, 2024
1 parent 1cc9389 commit e003443
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions api/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ services:
cache:
profiles:
- api
- api_extra
image: docker.io/redis:7.2.4
ports:
- "50263:6379"

web:
profiles:
- api
- api_extra
build:
target: api
additional_contexts:
Expand All @@ -35,7 +37,7 @@ services:

nginx:
profiles:
- api
- api_extra
build:
target: nginx
additional_contexts:
Expand All @@ -53,7 +55,7 @@ services:

proxy:
profiles:
- api
- api_extra
image: docker.io/nginx:alpine
ports:
- "50200:9080"
Expand Down
4 changes: 4 additions & 0 deletions api/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ install *args:
up *flags:
env COMPOSE_PROFILES="api" just ../up {{ flags }}

# Bring up services specific to the API profile, in addition to the API server
up-extra *flags:
env COMPOSE_PROFILES="api_extra" just ../up {{ flags }}

# Wait for all profile services to be up
wait-up: up
just ../ingestion_server/wait # API profile includes ingestion server
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ up *flags: env && ps
#!/usr/bin/env bash
set -eo pipefail
while true; do
if just dc up -d {{ flags }} ; then
if just dc up {{ if IS_CI != "" { "--quiet-pull" } else { "" } }} -d {{ flags }} ; then
break
fi
((c++)) && ((c==3)) && break
Expand Down

0 comments on commit e003443

Please sign in to comment.