-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.31 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.8'
services:
timescaledb:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_USER: ${ENVSERVER_DB_USER}
POSTGRES_PASSWORD: ${ENVSERVER_DB_PASSWORD}
PGDATA: /var/lib/postgresql/data
TZ: ${TZ}
TS_TUNE_MAX_CONNS: "1000"
ports:
- "5432:5432"
volumes:
- timescaledb_data:/var/lib/postgresql/data
envserver:
image: johan/envserver
depends_on:
- timescaledb
environment:
ENVSERVER_TLS: "false"
ENVSERVER_PORT: ${ENVSERVER_PORT}
ENVSERVER_DB_HOST: timescaledb
ENVSERVER_DB_PORT: 5432
ENVSERVER_DB_USER: ${ENVSERVER_DB_USER}
ENVSERVER_DB_PASSWORD: ${ENVSERVER_DB_PASSWORD}
ENVSERVER_VERBOSE: "true"
TZ: ${TZ}
ports:
- "${ENVSERVER_PORT}:${ENVSERVER_PORT}"
command: sh -c "envcli server start --initdb"
emulator_connector:
image: johan/envserver
depends_on:
- envserver
environment:
ENVSERVER_TLS: "false"
ENVSERVER_HOST: envserver
ENVSERVER_PORT: ${ENVSERVER_PORT}
CTRLPLANE_HOST: ${CTRLPLANE_HOST}
CTRLPLANE_PORT: ${CTRLPLANE_PORT}
PROMETHEUS_HOST: ${PROMETHEUS_HOST}
PROMETHEUS_PORT: ${PROMETHEUS_PORT}
TZ: ${TZ}
command: sh -c "envcli connectors emulator start"
volumes:
timescaledb_data: