Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
main
Breadcrumbs
crypto-data-aggregator
/
docker-compose.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
54 lines (49 loc) · 1.06 KB
main
Breadcrumbs
crypto-data-aggregator
/
docker-compose.yml
Copy path
Top
File metadata and controls
Code
Blame
54 lines (49 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: crypto-news-api
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Redis for caching (optional)
redis:
image: redis:7-alpine
container_name: crypto-news-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
restart: unless-stopped
profiles:
- with-cache
# WebSocket server for real-time updates
websocket:
build:
context: .
dockerfile: Dockerfile.ws
container_name: crypto-news-ws
ports:
- "8080:8080"
environment:
- PORT=8080
restart: unless-stopped
profiles:
- with-realtime
volumes:
redis_data:
networks:
default:
name: crypto-news-network
You can’t perform that action at this time.