-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.09 KB
/
docker-compose.yml
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
version: '3.7'
services:
lb:
image: 'openresty/openresty:buster-fat'
volumes:
- ./lb/nginx/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./lb/nginx/conf.d:/etc/nginx/conf.d
- ./lb/dlb:/usr/local/openresty/dlb
ports:
- 8888:80
networks:
internal:
ipv4_address: 172.28.0.100
aliases:
- lb
backend1:
image: 'openresty/openresty:buster-fat'
volumes:
- ./backend1/nginx/conf.d:/etc/nginx/conf.d
networks:
internal:
ipv4_address: 172.28.0.101
aliases:
- backend1
backend2:
image: 'openresty/openresty:buster-fat'
volumes:
- ./backend2/nginx/conf.d:/etc/nginx/conf.d
networks:
internal:
ipv4_address: 172.28.0.102
aliases:
- backend2
backend3:
image: 'openresty/openresty:buster-fat'
volumes:
- ./backend3/nginx/conf.d:/etc/nginx/conf.d
networks:
internal:
ipv4_address: 172.28.0.103
aliases:
- backend3
networks:
internal:
ipam:
config:
- subnet: 172.28.0.0/16