From 563159cc4d1af9f99718f57ab602b828fa29296b Mon Sep 17 00:00:00 2001 From: Harm Jongedijk Date: Mon, 22 Jul 2024 20:47:05 +0200 Subject: [PATCH] Updated tab style readme (#555) --- README.md | 214 +++++++++++++++++++++++++++--------------------------- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/README.md b/README.md index 7cd2c9a9..8ab5095e 100644 --- a/README.md +++ b/README.md @@ -86,127 +86,127 @@ docker-compose.yml (Backend Only) ```yml --- services: - riven: - image: spoked/riven:latest - container_name: riven - restart: unless-stopped - ports: - - "8080:8080" - tty: true - environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/Amsterdam - - RIVEN_DATABASE_HOST=sqlite:////riven/data/media.db - volumes: - - ./riven-data:/riven/data - - /mnt:/mnt + riven: + image: spoked/riven:latest + container_name: riven + restart: unless-stopped + ports: + - "8080:8080" + tty: true + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Amsterdam + - RIVEN_DATABASE_HOST=sqlite:////riven/data/media.db + volumes: + - ./riven-data:/riven/data + - /mnt:/mnt ``` docker-compose.yml (Frontend + Backend + SQLite) ```yml --- services: - riven-frontend: - image: spoked/riven-frontend:latest - container_name: riven-frontend - restart: unless-stopped - network_mode: host - tty: true - environment: - - PUID=1000 - - PGID=1000 - - ORIGIN=http://localhost:3000 - - BACKEND_URL=http://127.0.0.1:8080 - - TZ=Europe/Amsterdam - depends_on: - riven: - condition: service_healthy - - riven: - image: spoked/riven:latest - container_name: riven - restart: unless-stopped - network_mode: host - tty: true - environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/Amsterdam - - RIVEN_DATABASE_HOST=sqlite:////riven/data/media.db - healthcheck: - test: curl -s http://localhost:8080 >/dev/null || exit 1 - interval: 30s - timeout: 10s - retries: 10 - volumes: - - ./riven-data:/riven/data - - /mnt:/mnt + riven-frontend: + image: spoked/riven-frontend:latest + container_name: riven-frontend + restart: unless-stopped + network_mode: host + tty: true + environment: + - PUID=1000 + - PGID=1000 + - ORIGIN=http://localhost:3000 + - BACKEND_URL=http://127.0.0.1:8080 + - TZ=Europe/Amsterdam + depends_on: + riven: + condition: service_healthy + + riven: + image: spoked/riven:latest + container_name: riven + restart: unless-stopped + network_mode: host + tty: true + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Amsterdam + - RIVEN_DATABASE_HOST=sqlite:////riven/data/media.db + healthcheck: + test: curl -s http://localhost:8080 >/dev/null || exit 1 + interval: 30s + timeout: 10s + retries: 10 + volumes: + - ./riven-data:/riven/data + - /mnt:/mnt ``` docker-compose.yml (Frontend + Backend + Postgres) ```yml --- services: - riven-frontend: - image: spoked/riven-frontend:latest - container_name: riven-frontend - restart: unless-stopped - ports: - - "3000:3000" - tty: true - environment: - - PUID=1000 - - PGID=1000 - - ORIGIN=http://localhost:3000 - - BACKEND_URL=http://127.0.0.1:8080 - - TZ=Europe/Amsterdam - depends_on: - riven: - condition: service_healthy - - riven: - image: spoked/riven:latest - container_name: riven - restart: unless-stopped - ports: - - "8080:8080" - tty: true - environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/Amsterdam - - RIVEN_DATABASE_HOST=postgresql+psycopg2://postgres:postgres@riven_postgres/riven - healthcheck: - test: curl -s http://localhost:8080 >/dev/null || exit 1 - interval: 30s - timeout: 10s - retries: 10 - volumes: - - ./riven-data:/riven/data - - /mnt:/mnt - depends_on: - riven_postgres: - condition: service_healthy - - riven_postgres: - image: postgres:16.3-alpine3.20 - container_name: riven-db - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: riven - healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 30s - timeout: 10s - retries: 5 - networks: - - postgres-internal + riven-frontend: + image: spoked/riven-frontend:latest + container_name: riven-frontend + restart: unless-stopped + ports: + - "3000:3000" + tty: true + environment: + - PUID=1000 + - PGID=1000 + - ORIGIN=http://localhost:3000 + - BACKEND_URL=http://127.0.0.1:8080 + - TZ=Europe/Amsterdam + depends_on: + riven: + condition: service_healthy + + riven: + image: spoked/riven:latest + container_name: riven + restart: unless-stopped + ports: + - "8080:8080" + tty: true + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Amsterdam + - RIVEN_DATABASE_HOST=postgresql+psycopg2://postgres:postgres@riven_postgres/riven + healthcheck: + test: curl -s http://localhost:8080 >/dev/null || exit 1 + interval: 30s + timeout: 10s + retries: 10 + volumes: + - ./riven-data:/riven/data + - /mnt:/mnt + depends_on: + riven_postgres: + condition: service_healthy + + riven_postgres: + image: postgres:16.3-alpine3.20 + container_name: riven-db + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: riven + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 30s + timeout: 10s + retries: 5 + networks: + - postgres-internal networks: - postgres-internal: - default: + postgres-internal: + default: ``` Then run `docker compose up -d` to start the container in the background. You can then access the web interface at `http://localhost:3000` or whatever port and origin you set in the `docker-compose.yml` file.