mirror of
https://github.com/lukevella/rallly-selfhosted.git
synced 2026-02-01 21:00:11 +01:00
Add working example
This commit is contained in:
parent
203be219ad
commit
d23f31059b
@ -1,8 +1,15 @@
|
|||||||
version: "3.3"
|
version: "3.3"
|
||||||
services:
|
services:
|
||||||
rallly:
|
rallly:
|
||||||
|
hostname: rallly
|
||||||
|
rallly_nginx:
|
||||||
|
image: nginx:latest
|
||||||
|
volumes:
|
||||||
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
traefik.http.routers.rallly.rule: "Host(`example.com`)" # change to your domain name
|
traefik.http.routers.rallly.entrypoints: websecure
|
||||||
traefik.http.routers.rallly.entrypoints: "websecure"
|
traefik.http.routers.rallly.rule: Host(`example.com`)
|
||||||
traefik.http.services.rallly.loadbalancer.server.port: "3000"
|
traefik.http.routers.rallly.service: rallly
|
||||||
|
traefik.http.services.rallly.loadbalancer.server.port: "80"
|
||||||
9
reverse-proxy/traefik/nginx.conf
Normal file
9
reverse-proxy/traefik/nginx.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://rallly:3000;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user