bastian 2582f61f56
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Also add event manual.
2025-02-14 14:22:43 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-14 14:22:43 +01:00
2025-02-13 14:51:21 +01:00
2025-02-13 14:51:21 +01:00
2025-02-14 12:53:00 +01:00

cgk-streaming-roster

Streaming roster for CGK Leerdam - keeping track of who is streaming when.

Prerequisites

If you actually want to develop on this, you'll need a Nginx container to serve the requests, and a Postgres container as database.

The author is running this with a specific shared-services container setup.

You can use the following configuration in a compose.override.yaml file:

services:
    nginx:
      container_name: 'cgk-streaming-roster-nginx'
      image: nginx:1.27-alpine
      networks:
        - 'cgk-streaming-roster-network'
      ports:
        - "80:80"
      volumes:
        - .:/var/www:rw
        - ./docker/dev/nginx:/etc/nginx/conf.d/
          
  postgres:
    container_name: 'cgk-streaming-roster-database'
    image: postgres:17-alpine
    environment:
      POSTGRES_USER: cgk-streaming-roster
      POSTGRES_PASSWORD: mypassword
      POSTGRES_INITDB_ARGS: "--encoding=UTF8"
    ports:
      - "5432:5432"
    networks:
      - 'cgk-streaming-roster-network'
    healthcheck:
      test: [ "CMD", "pg_isready", "-d", "${POSTGRES_USER}", "-U", "${POSTGRES_USER}" ]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 60s
    volumes:
      - ./docker/volumes/postgres/data:/var/lib/postgresql/data:rw

  php-cgk-streaming-roster:
    networks:
      - 'cgk-streaming-roster-network'

networks:
  cgk-streaming-roster-network
    driver: bridge
  • Create a proper .env.local file in the PHP container that matches the database settings
  • Change the Nginx container port mapping if needed (e.g. 8080:80, where you can reach the app on localhost:8080)

Now run docker compose up -d. If successful, you can reach the app on http://localhost:80 (if you didn't change the port mapping).

Fresh install, execute the following in the PHP container

  1. cp .env .env.local and set up the correct values
  2. composer install
  3. bin/console doctrine:migrations:migrate
  4. npm install && npm run dev

If you develop on the front-end:

  • npm run watch
Description
Roster for streaming used in the CGK Leerdam - keeping track of who is streaming when.
https://cgk-rooster-streamen.b7d.nl
Readme CC-BY-NC-ND-4.0 194 KiB
Languages
PHP 67.4%
Twig 19%
JavaScript 4.8%
CSS 4.6%
Shell 2.7%
Other 1.5%