-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
52 lines (52 loc) · 1.32 KB
/
docker-compose.yaml
File metadata and controls
52 lines (52 loc) · 1.32 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
49
50
51
52
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
HOST: 0.0.0.0
PORT: 8000
NODE_ENV: production
DOMAIN_URL: ${DOMAIN_URL}
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
BETTER_AUTH_URL: ${BETTER_AUTH_URL}
DATABASE_URL: ${DATABASE_URL}
REDIS_PASSWORD: ${REDIS_PASSWORD}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/resources/up"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- postgres
- redis
postgres:
image: postgres:17
ports:
- "8001:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- strato_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 5
redis:
image: valkey/valkey:8.1.4
volumes:
- strato_redis_data:/data
command: redis-server --appendonly yes --maxmemory-policy noeviction --requirepass ${REDIS_PASSWORD}
healthcheck:
test: ["CMD", "redis-cli", "PING"]
interval: 5s
timeout: 10s
retries: 20
volumes:
strato_postgres_data:
strato_redis_data: