diff --git a/Caddyfile.dev b/Caddyfile.dev index c500c4e..2885793 100644 --- a/Caddyfile.dev +++ b/Caddyfile.dev @@ -1,5 +1,7 @@ -localhost +{ + auto_https off +} -encode gzip - -reverse_proxy landing:3000 +localhost { + reverse_proxy landing:8000 +} diff --git a/compose.dev.yml b/compose.dev.yml index cafeddf..a8be15b 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -8,7 +8,7 @@ services: - 80:80 - 443:443 volumes: - - ./Caddyfile.dev:/etc/caddy/Caddyfile:ro + - ./Caddyfile.dev:/etc/caddy/Caddyfile:rw restart: always networks: - proxy @@ -18,6 +18,9 @@ services: landing: container_name: landing image: landing:dev + expose: + - 8000 + - 3000 networks: - proxy diff --git a/src/landing/Dockerfile.dev b/src/landing/Dockerfile.dev index c67d0ad..d88fccf 100644 --- a/src/landing/Dockerfile.dev +++ b/src/landing/Dockerfile.dev @@ -10,9 +10,6 @@ RUN pip install -r requirements.txt # Deploy templates and prepare app RUN reflex init -# Download all npm dependencies and compile frontend -RUN reflex export --frontend-only --no-zip - # Needed until Reflex properly passes SIGTERM on backend. STOPSIGNAL SIGKILL diff --git a/src/landing/rxconfig.py b/src/landing/rxconfig.py index c9a1e6d..b54ba99 100644 --- a/src/landing/rxconfig.py +++ b/src/landing/rxconfig.py @@ -2,4 +2,4 @@ import reflex as rx config = rx.Config( app_name="landing", -) \ No newline at end of file +)