Use static web server

This commit is contained in:
Isaac Shoebottom 2024-08-06 16:58:08 -03:00
parent 34838586c0
commit c1d77f8f5b
2 changed files with 2 additions and 4 deletions

View File

@ -22,8 +22,8 @@ X_FORWARDED_PROTO_HEADER_SET=True
# links for some images *might* break (specially in the mobile app). Also note that # links for some images *might* break (specially in the mobile app). Also note that
# the API response is cached and contains the host, if you change this setting, just run # the API response is cached and contains the host, if you change this setting, just run
# docker compose exec web python3 manage.py warmup-exercise-api-cache --force # docker compose exec web python3 manage.py warmup-exercise-api-cache --force
MEDIA_URL=https://wger.shoebottom.ca/media/ MEDIA_URL=https://static:80/media/
STATIC_URL=https://wger.shoebottom.ca/static/ STATIC_URL=https://static:80/static/
# #
# These settings usually don't need changing # These settings usually don't need changing

View File

@ -32,8 +32,6 @@ services:
static: static:
image: joseluisq/static-web-server:latest image: joseluisq/static-web-server:latest
container_name: wger_static container_name: wger_static
ports:
- 9003:80
restart: unless-stopped restart: unless-stopped
environment: environment:
- SERVER_ROOT=/var/public - SERVER_ROOT=/var/public