expose actually works lol

This commit is contained in:
Timothy Pidashev
2024-03-07 14:52:30 -08:00
parent 4f93517f9e
commit 1fee9df3a1
2 changed files with 8 additions and 9 deletions

View File

@@ -2,6 +2,6 @@
auto_https off auto_https off
} }
localhost { 127.0.0.1:80 {
reverse_proxy landing:8000 reverse_proxy landing:3000
} }

View File

@@ -1,4 +1,4 @@
version: "3.8" version: '3.8'
services: services:
proxy: proxy:
@@ -6,12 +6,11 @@ services:
image: caddy:latest image: caddy:latest
ports: ports:
- 80:80 - 80:80
- 443:443
volumes: volumes:
- ./Caddyfile.dev:/etc/caddy/Caddyfile:rw - ./Caddyfile.dev:/etc/caddy/Caddyfile:rw
restart: always restart: always
networks: networks:
- proxy - external
depends_on: depends_on:
- landing - landing
@@ -19,12 +18,12 @@ services:
container_name: landing container_name: landing
image: landing:dev image: landing:dev
expose: expose:
- 8000
- 3000 - 3000
- 8000
networks: networks:
- proxy - external
networks: networks:
proxy: external:
name: proxy name: external
driver: bridge driver: bridge