Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/workflows #623

Merged
merged 5 commits into from
Feb 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create demo.yml
  • Loading branch information
richturner authored Feb 27, 2022
commit 58399d4b9727b1760e25012ff3ed7b68a54f7827
93 changes: 93 additions & 0 deletions profile/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# OpenRemote v3
#
# Profile that runs the stack by default on https://localhost using a self-signed SSL certificate,
# but optionally on https://$HOST with an auto generated SSL certificate from Letsencrypt.
#
# It is possible to specify SETUP_TYPE=demo to pre-populate the system with a set of demo assets, rules, etc. (as
# is shown at https://demo.openremote.io)
# with username 'admin' and password 'secret'. There is no map data available in the vanilla
# system so the map tile server will not function. Persistent data is stored in a docker
# volume called postgresql-data between restarts, simply delete this volume to reset the
# system to an empty state.
#
# Please see profile/deploy.yml for configuration details for each service.
#
version: '2.4'

volumes:
proxy-data:
temp-data:
postgresql-data:
deployment-data:

services:

deployment:
build: '../deployment'
image: openremote/deployment:latest
volumes:
- deployment-data:/deployment

proxy:
image: openremote/proxy:${PROXY_VERSION:-2.5.0.1}
restart: always
depends_on:
manager:
condition: service_healthy
ports:
- "80:80"
- "443:443"
- "8883:8883"
volumes:
- proxy-data:/deployment
environment:
LE_EMAIL: ${SETUP_EMAIL_ADMIN:-}
DOMAINNAME: ${HOST:-localhost}
# USE A CUSTOM PROXY CONFIG - COPY FROM https://github.com/openremote/proxy/blob/main/haproxy.cfg
#HAPROXY_CONFIG: '/data/proxy/haproxy.cfg'

postgresql:
restart: always
image: openremote/postgresql:${POSTGRESQL_VERSION:-14.1.0.1}
volumes:
- postgresql-data:/var/lib/postgresql/data
- temp-data:/tmp

keycloak:
restart: always
image: openremote/keycloak:${KEYCLOAK_VERSION:-16.0.0.0}
depends_on:
postgresql:
condition: service_healthy
volumes:
- ./deployment:/deployment
environment:
KEYCLOAK_PASSWORD: ${SETUP_ADMIN_PASSWORD:-secret}
KEYCLOAK_FRONTEND_URL: https://${HOST:-localhost}/auth

manager:
restart: always
image: openremote/manager:${MANAGER_VERSION:-latest}
depends_on:
keycloak:
condition: service_healthy
environment:
# Set this variable `demo` to auto provision demo assets etc.
SETUP_TYPE:
SETUP_ADMIN_PASSWORD:
SETUP_WIPE_CLEAN_INSTALL:
SETUP_EMAIL_HOST:
SETUP_EMAIL_USER:
SETUP_EMAIL_PASSWORD:
SETUP_EMAIL_FROM:
SETUP_EMAIL_ADMIN:
EXTERNAL_URL: https://${HOST:-localhost}
DEV_MODE:
# The following variables will configure the demo
FORECAST_SOLAR_API_KEY:
OPEN_WEATHER_API_APP_ID:
SETUP_IMPORT_DEMO_AGENT_KNX:
SETUP_IMPORT_DEMO_AGENT_VELBUS:
volumes:
- temp-data:/tmp
- deployment-data:/deployment