-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.77 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.77 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
mongo:
image: mongo:7
container_name: arcmind-mongo
restart: unless-stopped
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
healthcheck:
test: >
mongosh --quiet --eval "
try { rs.status().ok }
catch (e) {
rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost:27017'}]}).ok
}
"
interval: 5s
timeout: 30s
start_period: 10s
retries: 10
redis:
image: redis:7-alpine
container_name: arcmind-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
srh:
image: hiett/serverless-redis-http:latest
container_name: arcmind-srh
restart: unless-stopped
ports:
- "8079:80"
environment:
SRH_MODE: env
SRH_TOKEN: dev-token
SRH_CONNECTION_STRING: redis://redis:6379
depends_on:
redis:
condition: service_healthy
web:
build: .
container_name: arcmind-web
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
env_file: .env
environment:
DATABASE_URL: mongodb://mongo:27017/arcmind?replicaSet=rs0&directConnection=true
UPSTASH_REDIS_REST_URL: http://srh:80
UPSTASH_REDIS_REST_TOKEN: dev-token
NEXTAUTH_URL: http://localhost:3000
NEXT_PUBLIC_BASE_URL: http://localhost:3000
depends_on:
mongo:
condition: service_healthy
srh:
condition: service_started
volumes:
mongo-data:
mongo-config:
redis-data: