-
-
Notifications
You must be signed in to change notification settings - Fork 203
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
33 lines (29 loc) · 660 Bytes
/
docker-compose.yaml
File metadata and controls
33 lines (29 loc) · 660 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
version: '3.8'
services:
haproxy:
build:
context: ./haproxy
container_name: haproxy
ports:
# You can replace 6081 by the port work on your machine!
- '6081:80'
depends_on:
- nginx-webserver1
- nginx-webserver2
networks:
- haproxy-network
nginx-webserver1:
build:
context: ./nginx-webserver/nginx-webserver1
container_name: nginx-webserver1
networks:
- haproxy-network
nginx-webserver2:
build:
context: ./nginx-webserver/nginx-webserver2
container_name: nginx-webserver2
networks:
- haproxy-network
networks:
haproxy-network:
driver: bridge