-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (44 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
48 lines (44 loc) · 1.25 KB
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
services:
storywise:
depends_on:
timescaledb:
condition: service_healthy
networks:
- storywise
hostname: storywise
image: ghcr.io/dotmethodme/storywise:latest
environment:
PORT: ${PORT:-3777}
API_BASE_URL: ${API_BASE_URL:-http://localhost:3777}
ALLOWED_ORIGIN: "*"
TIMESCALE_ENABLED: "true"
POSTGRES_HOST: timescaledb
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_PORT: "5432"
POSTGRES_OPTIONS: "sslmode=disable binary_parameters=yes"
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-testing}
STORYWISE_PASSWORD: ${STORYWISE_PASSWORD:-testing}
STORYWISE_USERNAME: ${STORYWISE_USERNAME:-testing}
ports:
- "3777:3777"
timescaledb:
networks:
- storywise
hostname: timescaledb
image: timescale/timescaledb:latest-pg15
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-testing}
PGUSER: ${POSTGRES_USER:-postgres} # used by the healthcheck
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 5
networks:
storywise:
external: false
volumes:
storywise:
external: false