TimescaleDB
Complete docker-compose.yaml
services:
umh:
# TODO: set your desired container version here
# e.g. `umh-core:v0.44.31`
image: management.umh.app/oci/united-manufacturing-hub/umh-core:ENTER_VERSION_HERE
restart: unless-stopped
volumes:
- umh-data:/data
environment:
# TODO: Enter your instance's Auth Token.
# You'll find it in your instance's configuration
# file on management.umh.app.
- AUTH_TOKEN=your_auth_token
# TODO: Change the LOCATION_0 parameter
# to your desired Level 0 Location name
- LOCATION_0=your_level_0_location
# Optional: Define more levels
# - LOCATION_1=your_level_1
# - LOCATION_2=your_level_2
# - LOCATION_3=your_level_3
# - LOCATION_4=your_level_4
- RELEASE_CHANNEL=stable
- API_URL=https://management.umh.app/api
timescaledb:
image: management.umh.app/oci/timescale/timescaledb:2.24.0-pg17
restart: unless-stopped
environment:
- POSTGRES_DB=umh
# TODO: Set your postgresDB Password and Username here
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- timescaledb-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -h timescaledb"]
interval: 10s
timeout: 5s
retries: 5
networks:
- timescaledb-network
pgbouncer:
image: management.umh.app/oci/edoburu/pgbouncer:v1.24.1-p1
restart: unless-stopped
environment:
- DB_NAME=umh
# This has to be the same value as
# timescaledb.environment.POSTGRES_USER
- DB_USER=postgres
# This has to be the same value as
# timescaledb.environment.POSTGRES_PASSWORD
- DB_PASSWORD=postgres
- DB_HOST=timescaledb
- AUTH_TYPE=scram-sha-256
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -h pgbouncer"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
timescaledb:
condition: service_healthy
networks:
- default
- timescaledb-network
networks:
default:
timescaledb-network:
internal: true
volumes:
umh-data: {}
timescaledb-data: {}Already running umh-core?
What this declares
Last updated

