Skip to content

Commit 0ca5f0e

Browse files
authored
Merge pull request #5 from hatchet-dev/feat--models-gen-dc-changes
Feat: Compose for timescale
2 parents 7375cdc + 0417f52 commit 0ca5f0e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Taskfile.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tasks:
1717
- |
1818
cat > .env <<EOF
1919
DATABASE_URL='postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet'
20+
TIMESCALE_URL='postgresql://hatchet:hatchet@localhost:5444/hatchet'
2021
EOF
2122
set-env-all:
2223
cmds:
@@ -25,6 +26,7 @@ tasks:
2526
2627
cat > .env <<EOF
2728
DATABASE_URL='postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet'
29+
TIMESCALE_URL='postgresql://hatchet:hatchet@localhost:5444/hatchet'
2830
2931
SERVER_ENCRYPTION_MASTER_KEYSET_FILE=./hack/dev/encryption-keys/master.key
3032
SERVER_ENCRYPTION_JWT_PRIVATE_KEYSET_FILE=./hack/dev/encryption-keys/private_ec256.key

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,22 @@ services:
3131
timeout: 10s
3232
retries: 5
3333

34+
timescale:
35+
image: timescale/timescaledb-ha:pg15
36+
command: postgres -c 'max_connections=200'
37+
restart: always
38+
environment:
39+
- POSTGRES_USER=hatchet
40+
- POSTGRES_PASSWORD=hatchet
41+
- POSTGRES_DB=hatchet
42+
ports:
43+
- "5444:5432"
44+
volumes:
45+
- hatchet_timescale_data:/var/lib/postgresql/data
46+
shm_size: 4g
47+
3448
volumes:
49+
hatchet_timescale_data:
3550
hatchet_postgres_data:
3651
hatchet_rabbitmq_data:
3752
hatchet_rabbitmq.conf:

0 commit comments

Comments
 (0)