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
}
localhost {
reverse_proxy landing:8000
127.0.0.1:80 {
reverse_proxy landing:3000
}

View File

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