Skip to content

Commit

Permalink
fix: fix front-end docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 29, 2024
1 parent fc29042 commit 6d8e8fc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,26 @@ services:
# frontend is nginx serving static files and proxying to API
search_frontend:
# this is the nginx frontend serving react static version or redirecting queries
image: ghcr.io/openfoodfacts/search-a-licious/search_frontend:${DOCKER_TAG:-dev}
image: search-a-licious/searchalicious_frontend:dev
depends_on:
- api
environment:
# enabling prod config and disabling dev one
PROD_UI_SUFFIX: ""
DEV_UI_SUFFIX: "-dev"
PROD_UI_SUFFIX: "${PROD_UI_SUFFIX--static}"
DEV_UI_SUFFIX: "${DEV_UI_SUFFIX-}"
volumes:
# Nginx, we use templates dir to be able to use environment vars
- ./confs/nginx.conf:/etc/nginx/templates/default.conf.template
# dynamic mount
- ./frontend/public:/opt/search-a-licious/public
ports:
- ${SEARCH_EXPOSE:-127.0.0.1:8000}:80
build:
context: frontend
args:
USER_UID: ${USER_UID:-1000}
USER_GID: ${USER_GID:-1000}



volumes:
Expand Down

0 comments on commit 6d8e8fc

Please sign in to comment.