Skip to content

Commit

Permalink
chore(dev): use local media in local production
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 18, 2023
1 parent 9b7578e commit 4474328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ up: DC_CMD = up
up: dc ## Runs all needed docker containers

produp: ## Runs fiesta in (local)production mode.
$(DC) -f docker-compose.yml -f docker-compose.prod.yml --profile prod up
$(DC) -f docker-compose.yml -f docker-compose.prod.yml --profile prod up --build

psql: DC_CMD = run --entrypoint bash db -c "PGPASSWORD=fiesta psql --host db --user fiesta --dbname fiesta"
psql: dc ## Runs psql shell in database
Expand Down
1 change: 0 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
- ./fiesta/:/usr/src/app/
- ./conf/certs:/usr/share/certs
- web_static_files:/usr/src/static
- web_media_files:/usr/src/media
- webpack_build:/usr/src/build
build:
args:
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ services:
target: web-base
depends_on:
- db
volumes:
# for dev and also produp
- web_media_files:/usr/src/media
environment:
VIRTUAL_HOST: web.${ROOT_DOMAIN}
VIRTUAL_PORT: 8000
Expand Down

0 comments on commit 4474328

Please sign in to comment.