-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.42 KB
/
docker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.42 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
53
54
55
56
57
services:
# Uncomment if you need authentication (requires DATABASE_URL + BETTER_AUTH_SECRET)
# postgres:
# image: postgres:17-alpine
# environment:
# POSTGRES_USER: cutia
# POSTGRES_PASSWORD: cutia
# POSTGRES_DB: cutia
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U cutia -d cutia"]
# interval: 5s
# timeout: 5s
# retries: 5
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
serverless-redis-http:
image: hiett/serverless-redis-http:latest
environment:
SRH_MODE: env
SRH_TOKEN: cutia_redis_token
SRH_CONNECTION_STRING: redis://redis:6379
ports:
- "8079:80"
depends_on:
redis:
condition: service_healthy
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NODE_ENV: production
NEXT_PUBLIC_SITE_URL: http://localhost:3000
# DATABASE_URL: postgresql://cutia:cutia@postgres:5432/cutia
# BETTER_AUTH_SECRET: change_me_to_a_random_secret
UPSTASH_REDIS_REST_URL: http://serverless-redis-http:80
UPSTASH_REDIS_REST_TOKEN: cutia_redis_token
depends_on:
serverless-redis-http:
condition: service_started
# volumes:
# postgres_data: