Repository navigation
Expand file tree
/
Copy pathcoolify-compose.yml
More file actions
54 lines (51 loc) 路 1.54 KB
/
Copy pathcoolify-compose.yml
File metadata and controls
54 lines (51 loc) 路 1.54 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
# Coolify Compose Template: Instagram Saved Posts Tracker
# Paste this directly into Coolify -> New Resource -> Docker Compose
version: "3.8"
services:
app:
# Use :latest for newest release, or pin/rollback to a specific release tag (e.g. :v1.0.1)
image: ghcr.io/gitnasr/instagram-saved-posts:latest
pull_policy: always
restart: unless-stopped
expose:
- "3000"
ports:
- "${PORT:-5050}:3000"
environment:
- DATABASE_URL=mongodb://mongo:27017/instagram?replicaSet=rs0&directConnection=true
- NODE_ENV=production
- PORT=3000
- HOSTNAME=0.0.0.0
# AI Vector Search is an optional beta add-on, off by default.
# To enable it, see docs/features/ai-vector-search.md
# Optional Cloudinary CDN Configuration
- CLOUDINARY_CLOUD_NAME=${CLOUDINARY_CLOUD_NAME:-}
- CLOUDINARY_API_KEY=${CLOUDINARY_API_KEY:-}
- CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET:-}
depends_on:
mongo:
condition: service_healthy
mongo:
image: mongo:7.0
restart: unless-stopped
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
volumes:
- mongo_data:/data/db
healthcheck:
test: >
mongosh --port 27017 --eval "
try {
rs.status().ok
} catch (e) {
rs.initiate({
_id: 'rs0',
members: [{ _id: 0, host: 'mongo:27017' }]
}).ok
}
" || exit 1
interval: 5s
timeout: 5s
retries: 10
start_period: 2s
volumes:
mongo_data: