-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (66 loc) · 1.61 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
71 lines (66 loc) · 1.61 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:
# Ruway Gateway
gateway:
build:
context: .
dockerfile: Dockerfile
container_name: ruway-gateway
ports:
- "3000:3000"
environment:
- RUST_LOG=info,ruway=debug
- LOG_FORMAT=pretty
- JWT_SECRET=test-secret-key-for-dev
volumes:
- ./config.yaml:/app/config.yaml
depends_on:
- backend1
- backend2
- backend3
networks:
- ruway-network
restart: unless-stopped
# Backend instances (for testing)
backend1:
image: hashicorp/http-echo
container_name: backend-1
command: ["-text=Backend 1 - Hello from instance 1! 🚀", "-listen=:8080"]
ports:
- "8081:8080"
networks:
- ruway-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080"]
interval: 10s
timeout: 3s
retries: 3
backend2:
image: hashicorp/http-echo
container_name: backend-2
command: ["-text=Backend 2 - Hello from instance 2! 🔥", "-listen=:8080"]
ports:
- "8082:8080"
networks:
- ruway-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080"]
interval: 10s
timeout: 3s
retries: 3
backend3:
image: hashicorp/http-echo
container_name: backend-3
command: ["-text=Backend 3 - Hello from instance 3! ⚡", "-listen=:8080"]
ports:
- "8083:8080"
networks:
- ruway-network
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080"]
interval: 10s
timeout: 3s
retries: 3
networks:
ruway-network:
driver: bridge