Files
hyprcrd/docker-compose.yml
2026-04-19 13:08:57 +00:00

53 lines
1.7 KiB
YAML

services:
app:
build: .
ports:
- "8088:80"
environment:
# `host.docker.internal` resolves to the Docker host via the
# extra_hosts mapping below, so the PHP proxy can reach a dashboard
# running directly on the host. Swap to a routable URL when the
# dashboard moves to a remote server.
OUMTA_DASHBOARD_URL: http://host.docker.internal:8085
# OUMTA_DASHBOARD_TOKEN: "" # Keycloak bearer, when auth is on
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./data:/var/www/html/data
- ./src:/var/www/html/src
- ./public:/var/www/html/public
- ./config.php:/var/www/html/config.php
# Relay is opt-in via the `relay` profile. Plain `docker compose up`
# starts just the app; use `docker compose --profile relay up` when
# you want to develop against a local relay instead of a remote one.
relay:
build: ./relay
profiles: ["relay"]
ports:
- "8081:80"
volumes:
- ./relay/index.php:/var/www/html/index.php
- ./relay/.htaccess:/var/www/html/.htaccess
- ./relay/fonts:/var/www/html/fonts
- ./relay/inc:/var/www/html/inc
- ./relay/ui:/var/www/html/ui
- relay-data:/var/www/html/data
# Support-relay also opt-in via its own profile. Shares the compose
# network with the app so hyprcrd's support plugin can reach it at
# `http://support-relay:80` (container-to-container, no host port
# needed). Port 8090 is still published so you can open the public
# form in a browser.
support-relay:
build: ./support-relay
profiles: ["support"]
ports:
- "8090:80"
volumes:
- support-relay-data:/var/www/html/data
volumes:
relay-data:
support-relay-data: