Skip to content
Snippets Groups Projects
Select Git revision
  • ical-export
  • develop default protected
  • feature/audit_log
  • fix/index
  • badge-redeem-404
  • 720-schedule_source
  • room-docu
  • chore/event-views
  • 511-schedule-foo-fixed
  • 607-schedule-versions
  • deploy/curl-verbose
  • fix/public-badge-access-rights
  • 445-schedule-redirects
  • 623-wiki-im-baustellenmodus-sollte-mal-als-wiki-admin-trotzdem-seiten-anlegen-bearbeiten-konnen
  • fix/registration_mail_subject
  • feature/conference-query-set
  • feature/568-habitatmanagement
  • feat/unit-integration-tests
  • camp23-prod
  • production
  • prod-2024-12-27_20-15
  • prod-2024-12-27_16-37
  • prod-2024-12-27_16-01
  • prod-2024-12-27_13-29
  • prod-2024-12-27_00-34
  • prod-2024-12-26_21-45
  • prod-2024-12-26_13-12
  • prod-2024-12-26_00-21
  • prod-2024-12-25_21-04
  • prod-2024-12-25_15-54
  • prod-2024-12-25_01-29
  • prod-2024-12-24_14-48
  • prod-2024-12-23_23-39
  • prod-2024-12-22_21-12
  • prod-2024-12-22_17-25
  • prod-2024-12-22_01-34
  • prod-2024-12-22_00-55
  • prod-2024-12-21_13-42
  • prod-2024-12-21_10-44
  • prod-2024-12-20_12-25
40 results

docker-compose.yml

Blame
  • Forked from hub / hub
    184 commits behind the upstream repository.
    • Roang's avatar
      fe700f6e
      Update style build · fe700f6e
      Roang authored
      * Add a new service to build the static files
      * Remove the development flag from the Dockerfile
      * Copy the static files from the node build stage instead of generating
        them in a python container.
      fe700f6e
      History
      Update style build
      Roang authored
      * Add a new service to build the static files
      * Remove the development flag from the Dockerfile
      * Copy the static files from the node build stage instead of generating
        them in a python container.
    docker-compose.yml 1.81 KiB
    services:
      hub:
        image: hub:latest
        build:
          context: .
          target: "${BUILD_TARGET:-dev}"
        volumes:
          - ./src:/app
          - hubrun:/run/hub/
        environment:
          DJANGO_MIGRATE: "${DJANGO_MIGRATE:-yes}"
          DJANGO_LOAD_FIXTURE: ${DJANGO_LOAD_FIXTURE:-core/fixtures/anhalter.json}
          DATABASE_URL: "postgis://${HUB_DB_USER:-postgres}:${HUB_DB_PASSWORD:-postgres}@${HUB_DB_HOST:-db}:${DB_PORT:-5432}/${HUB_DB:-postgres}"
          CLIENT_IP_HEADER: "HTTP_X_REAL_IP"
          NUM_WORKERS: 1
          SERVE_ADMIN: True
          PYDEVD_DISABLE_FILE_VALIDATION: 1
        network_mode: service:db
        depends_on:
          - db
          - nginx
    
      hubtest:
        image: hub:latest
        restart: "no"
        entrypoint: tox
        volumes:
          - ./src:/app
        environment:
          DATABASE_URL: "postgis://${HUB_DB_USER:-postgres}:${HUB_DB_PASSWORD:-postgres}@${HUB_DB_HOST:-db}:${DB_PORT:-5432}/${HUB_DB:-hub_test}"
          SSO_SECRET_GENERATE: True
        depends_on:
          - db
        profiles:
          - test
    
      local-static:
        image: node-builder:latest
        build:
          context: .
          target: node-build
        volumes:
          # Mount only the static files, as we need the node_modules to be installed from build
          - ./src/plainui/styles:/app/plainui/styles
          - ./src/plainui/static:/app/plainui/static
        profiles:
          - build
    
      nginx:
        image: hubnginx:latest
        build:
          context: .
          target: nginx
        volumes:
          - hubrun:/run/hub/
        network_mode: service:db
    
      db:
        image: postgis/postgis:latest
        restart: unless-stopped
        volumes:
          - postgres-data:/var/lib/postgresql/data
        environment:
          POSTGRES_USER: "${HUB_DB_USER:-postgres}"
          POSTGRES_DB: "${HUB_DB:-postgres}"
          POSTGRES_PASSWORD: "${HUB_DB_PASSWORD:-postgres}"
        ports:
          - "5432:5432"
          - "80:80"