-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1009 Bytes
/
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
version: "3.9"
services:
growatt_server:
# image: stefa168/growatt_server:latest
build: .
ports:
- "5279:5279/tcp"
volumes:
- ./inverters:/usr/local/bin/inverters
networks:
postgres-net:
timescale:
container_name: timescale
image: timescale/timescaledb-ha:pg15.3-ts2.11.0-all
restart: unless-stopped
# https://github.com/timescale/timescaledb-docker-ha/issues/359
user: "root"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD_FILE: "/run/secrets/postgres-password"
PGDATA: "/var/lib/postgresql/data"
ports:
- "5433:5432"
volumes:
- ./timescale-data:/var/lib/postgresql/data
secrets:
- postgres-password
networks:
postgres-net:
aliases:
- postgres
- postgresql
- timescale
- timescaledb
- database
secrets:
postgres-password:
file: ./secrets/.postgres-password
networks:
postgres-net:
name: postgres-network