mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
33 lines
838 B
YAML
33 lines
838 B
YAML
services:
|
|
app1:
|
|
image: nginxdemos/nginx-hello
|
|
networks:
|
|
- bw-services
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- "node.role==worker"
|
|
labels:
|
|
- bunkerweb.SERVER_NAME=www.example.com
|
|
- bunkerweb.USE_REVERSE_PROXY=yes
|
|
- bunkerweb.REVERSE_PROXY_URL_1=~ ^/app1/(.*)$$
|
|
- bunkerweb.REVERSE_PROXY_HOST_1=http://app1:8080/$$1
|
|
|
|
app2:
|
|
image: nginxdemos/nginx-hello
|
|
networks:
|
|
- bw-services
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- "node.role==worker"
|
|
labels:
|
|
- bunkerweb.SERVER_NAME=www.example.com
|
|
- bunkerweb.USE_REVERSE_PROXY=yes
|
|
- bunkerweb.REVERSE_PROXY_URL_2=~ ^/app2/(.*)$$
|
|
- bunkerweb.REVERSE_PROXY_HOST_2=http://app2:8080/$$1
|
|
|
|
networks:
|
|
bw-services:
|
|
external: true
|
|
name: bw-services
|