1
0
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:
Jonathan Starck 2023-10-28 17:34:22 +02:00
parent 203be219ad
commit d23f31059b
2 changed files with 19 additions and 3 deletions

View File

@ -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"

View 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;
}
}