-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.4 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
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3111:3111"
environment:
- NODE_ENV=development
- NEXT_PUBLIC_BACKEND_URL=http://backend:5111
- PORT=3111
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
depends_on:
backend:
condition: service_started
networks:
- app-network
extra_hosts:
- "host.docker.internal:host-gateway"
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5111:5111"
environment:
- NODE_ENV=development
- REDIS_HOST=redis
- REDIS_PORT=6379
- GITHUB_API_URL=https://api.github.com
- PORT=5111
volumes:
- ./backend:/app
- /app/node_modules
- /app/dist
depends_on:
- redis
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5111/health"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf:ro
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
ulimits:
memlock: -1
networks:
- app-network
volumes:
redis_data:
networks:
app-network:
driver: bridge
name: rate-limiting-network