Skip to content

Commit

Permalink
Merge branch 'main' into configure-redis
Browse files Browse the repository at this point in the history
  • Loading branch information
john-gom authored Mar 11, 2024
2 parents d0431b1 + c96c987 commit 0af2935
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
COMPOSE_FILE=docker-compose.yml;docker/dev.yml
COMPOSE_PROJECT_NAME=off-query
COMPOSE_PATH_SEPARATOR=;
RESTART_POLICY=no
TAG=latest
QUERY_PORT=127.0.0.1:5511
POSTGRES_HOST=localhost
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
echo "COMPOSE_HTTP_TIMEOUT=120" >> .env
echo "COMPOSE_PROJECT_NAME=off-query" >> .env
echo "COMPOSE_PATH_SEPARATOR=;" >> .env
echo "RESTART_POLICY=always" >> .env
echo "COMPOSE_FILE=docker-compose.yml" >> .env
echo "TAG=sha-${{ github.sha }}" >> .env
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
query_postgres:
image: postgres:12-alpine
restart: ${RESTART_POLICY:-always}
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
Expand All @@ -12,6 +13,7 @@ services:

query:
image: ghcr.io/openfoodfacts/openfoodfacts-query:${TAG}
restart: ${RESTART_POLICY:-always}
environment:
- POSTGRES_HOST=query_postgres
- POSTGRES_PORT=5432
Expand Down

0 comments on commit 0af2935

Please sign in to comment.