-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1018 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 1018 Bytes
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
version: '3'
services:
toxiproxy-wrapper:
build: .
container_name: toxiproxy-wrapper
ports:
- "3000:3000" # Wrapper API
- "8474:8474" # Toxiproxy API
environment:
- PORT=3000
- TOXIPROXY_HOST=0.0.0.0
- TOXIPROXY_PORT=8474
- AUTO_START_SERVER=true
- LOG_LEVEL=info
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
networks:
- toxiproxy-network
# Example services that might use the proxy
# Uncomment and customize as needed
# redis:
# image: redis:latest
# container_name: redis
# ports:
# - "6379:6379"
# networks:
# - toxiproxy-network
# app:
# image: your-app:latest
# depends_on:
# - toxiproxy-wrapper
# environment:
# - REDIS_HOST=toxiproxy-wrapper
# - REDIS_PORT=26379 # Point to the proxied port instead of direct redis
# networks:
# - toxiproxy-network
networks:
toxiproxy-network:
driver: bridge