Skip to content
Snippets Groups Projects
Commit 95856227 authored by Hoai Viet Nguyen's avatar Hoai Viet Nguyen
Browse files

add reverse proxy

parent f4df5b9f
Branches main v0.2_with_reverse_proxy
No related tags found
No related merge requests found
:80 {
# http://localhost:9001/nginx -> http://nginx/nginx
# reverse_proxy /nginx nginx
# http://localhost:9001/nginx -> http://nginx/
route /nginx* {
uri replace /nginx /
reverse_proxy nginx
}
route /apache* {
uri replace /apache /
reverse_proxy apache
}
route /todolist* {
uri replace /todolist /
reverse_proxy todolist:8080
}
}
todolist.org:80 {
reverse_proxy todolist:8080
}
FROM caddy:2.9.1
COPY Caddyfile /etc/caddy/Caddyfile
\ No newline at end of file
#Auflistung aller Dienste #Auflistung aller Dienste
services: services:
caddy:
build: ./caddy
ports:
- 9001:80
#Dienstname bzw. Hostname innerhalb des Netzwerks #Dienstname bzw. Hostname innerhalb des Netzwerks
nginx: nginx:
#Pfad zum Dockerfile für diesen Container #Pfad zum Dockerfile für diesen Container
build: ./nginx build: ./nginx
#Port-Mapping von außen nach innen #Port-Mapping von außen nach innen
ports:
- 8080:80
apache: apache:
#Basis-Image #Basis-Image
image: httpd:2.4 image: httpd:2.4
ports:
- 207:80
todolist: todolist:
build: ./todolist_spring build: ./todolist_spring
\ No newline at end of file
ports:
- 8070:8080
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment