You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

version: '2.1'
6 years ago
services:
server:
6 years ago
image: hastic/server:latest
build:
dockerfile: server/Dockerfile
context: .
environment:
HASTIC_API_KEY: ${HASTIC_API_KEY?"HASTIC_API_KEY variable is required"}
GRAFANA_URL: ${GRAFANA_URL?"GRAFANA_URL variable is required"}
HASTIC_ALERT_TYPE: ${HASTIC_ALERT_TYPE}
HASTIC_ALERTMANAGER_URL: ${HASTIC_ALERTMANAGER_URL}
HASTIC_WEBHOOK_URL: ${HASTIC_WEBHOOK_URL}
HASTIC_INSTANCE_NAME: ${HASTIC_INSTANCE_NAME}
HASTIC_ALERT_IMAGE: ${HASTIC_ALERT_IMAGE}
HASTIC_DB_CONNECTION_STRING: ${HASTIC_DB_CONNECTION_STRING}
HASTIC_DB_CONNECTION_TYPE: ${HASTIC_DB_CONNECTION_TYPE}
HASTIC_TIMEZONE_OFFSET: ${HASTIC_TIMEZONE_OFFSET}
6 years ago
ports:
- ${HASTIC_PORT:-8000}:8000
6 years ago
volumes:
- data-volume:/var/www/data
networks:
- hastic-network
restart: always
6 years ago
analytics:
6 years ago
image: hastic/analytics:latest
6 years ago
build: analytics
environment:
# TODO: use any port for server connection
HASTIC_SERVER_URL: "ws://server:8002"
HS_AN_LOGGING_LEVEL: ${HS_AN_LOGGING_LEVEL}
networks:
- hastic-network
restart: always
6 years ago
volumes:
data-volume:
networks:
hastic-network: