Skip to content

Commit

Permalink
Fix docker compose files for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
earlinn committed Jan 29, 2024
1 parent 2755817 commit 944dfdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
17 changes: 8 additions & 9 deletions infra/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ services:
- ./.env

frontend:
# Settings for building image from a cloned frontend repository
# build:
# context: ../../frontend/
# args:
# - VITE_API_URL=${VITE_API_URL}
# - VITE_BASE_URL=${VITE_BASE_URL}
# Settings for building image from a cloned frontend repository (mind the branch)
build:
context: ../../frontend/
args:
- VITE_API_URL=${VITE_API_URL}
- VITE_BASE_URL=${VITE_BASE_URL}
# if we need a specific image name after building
# or want to pull a specific image from DockerHub (in this case comment lines 28-32)
image: healthyfoodapi/good_food_frontend:v.01
environment:
- VITE_API_URL=${VITE_API_URL}
- VITE_BASE_URL=${VITE_BASE_URL}
container_name: good_food_frontend
command: cp -r /app/dist/. /frontend_static/
volumes:
Expand Down
3 changes: 0 additions & 3 deletions infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ services:

frontend:
image: healthyfoodapi/good_food_frontend:v.01
environment:
- VITE_API_URL=${VITE_API_URL}
- VITE_BASE_URL=${VITE_BASE_URL}
container_name: good_food_frontend
command: cp -r /app/dist/. /frontend_static/
volumes:
Expand Down

0 comments on commit 944dfdb

Please sign in to comment.