-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (61 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
69 lines (61 loc) · 1.12 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
#
# Author: canetizen
# Created on Sat May 31 2025
# Description: Docker initializer for dummy servers and HAProxy instances.
#
version: "3.8"
services:
server1:
build: .
environment:
- PORT=8081
container_name: server1
networks:
- backend
server2:
build: .
environment:
- PORT=8082
container_name: server2
networks:
- backend
server3:
build: .
environment:
- PORT=8083
container_name: server3
networks:
- backend
backup-server:
build: .
environment:
- PORT=8084
container_name: backup-server
networks:
- backend
haproxy-l4:
image: haproxy:2.9
volumes:
- ./config/haproxy-l4.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- "8084:80"
depends_on:
- server1
- server2
- server3
networks:
- backend
haproxy-l7:
image: haproxy:2.9
volumes:
- ./config/haproxy-l7.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- "8087:80"
depends_on:
- server1
- server2
- server3
networks:
- backend
networks:
backend: