-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
92 lines (85 loc) · 1.89 KB
/
docker-compose.test.yml
File metadata and controls
92 lines (85 loc) · 1.89 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.8'
services:
manager:
build:
context: manager
dockerfile: Dockerfile
target: development
environment:
- DATABASE_URL=postgresql://marchproxy:marchproxy@postgres:5432/marchproxy
- LOG_LEVEL=debug
- ENABLE_DEBUG=true
ports:
- "8000:8000"
depends_on:
- postgres
volumes:
- ./manager:/app
networks:
- marchproxy-test
proxy-egress:
build:
context: proxy-egress
dockerfile: Dockerfile
target: development
environment:
- MANAGER_URL=http://manager:8000
- CLUSTER_API_KEY=test-cluster-api-key
- PROXY_NAME=test-proxy-egress
- LOG_LEVEL=debug
- LISTEN_PORT=8080
- ADMIN_PORT=8081
- ENABLE_METRICS=true
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- manager
networks:
- marchproxy-test
proxy-ingress:
build:
context: proxy-ingress
dockerfile: Dockerfile
target: development
environment:
- MANAGER_URL=http://manager:8000
- CLUSTER_API_KEY=test-cluster-api-key
- PROXY_NAME=test-proxy-ingress
- LOG_LEVEL=debug
- LISTEN_PORT=8082
- ADMIN_PORT=8083
- ENABLE_METRICS=true
ports:
- "8082:8082"
- "8083:8083"
depends_on:
- manager
networks:
- marchproxy-test
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_DB=marchproxy
- POSTGRES_USER=marchproxy
- POSTGRES_PASSWORD=marchproxy
ports:
- "5432:5432"
volumes:
- postgres_test_data:/var/lib/postgresql/data
networks:
- marchproxy-test
# Test backend service
test-backend:
image: nginx:alpine
ports:
- "9999:80"
volumes:
- ./test/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- marchproxy-test
volumes:
postgres_test_data:
networks:
marchproxy-test:
driver: bridge