mirror of
https://github.com/lukevella/rallly-selfhosted.git
synced 2026-02-01 21:00:11 +01:00
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
version: "3.3"
|
|
|
|
networks:
|
|
live_network:
|
|
external: true
|
|
internal_network:
|
|
external: false
|
|
|
|
services:
|
|
rallly:
|
|
container_name: "rallly"
|
|
image: lukevella/rallly:latest
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
- "live_network"
|
|
- "internal_network"
|
|
|
|
depends_on:
|
|
rallly-db:
|
|
condition: service_healthy
|
|
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@rallly-db:5432/db
|
|
|
|
env_file:
|
|
- ./config/rallly.env # TODO: Replace this with the location of your rallly env file.
|
|
|
|
labels:
|
|
- "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.routers.rallly-websecure.entrypoints=websecure"
|
|
|
|
rallly-db:
|
|
container_name: "rallly-db"
|
|
image: postgres:14.2
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
- "internal_network"
|
|
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=db
|
|
|
|
volumes:
|
|
- ./data/db-data:/var/lib/postgresql/data
|
|
|
|
labels:
|
|
- "traefik.enable=false"
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|