mirror of
https://github.com/lukevella/rallly-selfhosted.git
synced 2026-02-01 21:00:11 +01:00
Addresses PR Feedback
This commit is contained in:
parent
485c0bbac6
commit
a62c6c0445
@ -1,4 +1,4 @@
|
|||||||
version: '3.3'
|
version: "3.3"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
live_network:
|
live_network:
|
||||||
@ -7,35 +7,6 @@ networks:
|
|||||||
external: false
|
external: false
|
||||||
|
|
||||||
services:
|
services:
|
||||||
traefik:
|
|
||||||
container_name: "traefik"
|
|
||||||
image: "traefik:v2.9"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
- "live_network"
|
|
||||||
- "internal_network"
|
|
||||||
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
command:
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
- "--entrypoints.websecure.address=:443"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--certificatesresolvers.le.acme.email=example@example.com" # Add your email address here
|
|
||||||
- "--certificatesresolvers.le.acme.storage=/data/acme.json"
|
|
||||||
- "--certificatesresolvers.le.acme.tlschallenge=true"
|
|
||||||
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
||||||
- "./data:/data"
|
|
||||||
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=false"
|
|
||||||
|
|
||||||
rallly:
|
rallly:
|
||||||
container_name: "rallly"
|
container_name: "rallly"
|
||||||
image: lukevella/rallly:latest
|
image: lukevella/rallly:latest
|
||||||
@ -53,23 +24,13 @@ services:
|
|||||||
- DATABASE_URL=postgres://postgres:postgres@rallly-db:5432/db
|
- DATABASE_URL=postgres://postgres:postgres@rallly-db:5432/db
|
||||||
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./config/rallly.env
|
- ./config/rallly.env # TODO: Replace this with the location of your rallly env file.
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.rallly-websecure.rule=Host(`rallly.example.com`)" # TODO: Add your domain here
|
||||||
- "traefik.http.services.rallly.loadbalancer.server.port=3000"
|
- "traefik.http.services.rallly.loadbalancer.server.port=3000"
|
||||||
- "traefik.docker.network=live_network"
|
|
||||||
|
|
||||||
- "traefik.http.routers.rallly-websecure.rule=Host(`rallly.example.com`)" # Add your domain here
|
|
||||||
- "traefik.http.routers.rallly-websecure.entrypoints=websecure"
|
- "traefik.http.routers.rallly-websecure.entrypoints=websecure"
|
||||||
- "traefik.http.routers.rallly-websecure.tls=true"
|
|
||||||
- "traefik.http.routers.rallly-websecure.tls.certresolver=le"
|
|
||||||
|
|
||||||
- "traefik.http.routers.rallly-web.rule=Host(`rallly.example.com`)" # Add your domain here
|
|
||||||
- "traefik.http.routers.rallly-web.entrypoints=web"
|
|
||||||
- "traefik.http.routers.rallly-web.middlewares=rallly-http-redirect"
|
|
||||||
|
|
||||||
- "traefik.http.middlewares.rallly-http-redirect.redirectscheme.scheme=https"
|
|
||||||
|
|
||||||
rallly-db:
|
rallly-db:
|
||||||
container_name: "rallly-db"
|
container_name: "rallly-db"
|
||||||
@ -88,6 +49,7 @@ services:
|
|||||||
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=false"
|
- "traefik.enable=false"
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user