forked from captain686/proxy_pool-with-openresty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 858 Bytes
/
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
version: '3.5'
services:
proxy_pool:
build: .
container_name: proxy_pool
ports:
- "5010:5010"
depends_on:
- proxy_redis
restart: always
environment:
DB_CONN: "redis://@proxy_redis:6379/0"
networks:
proxy_network:
ipv4_address: 192.168.112.2
proxy_redis:
image: "redis"
container_name: proxy_redis
restart: always
networks:
proxy_network:
ipv4_address: 192.168.112.3
proxy_nginx:
build:
context: .
dockerfile: Nginx
restart: always
depends_on:
- proxy_redis
ports:
- "8888:80"
container_name: proxy_nginx
networks:
proxy_network:
ipv4_address: 192.168.112.112
networks:
proxy_network:
name: "proxy_network"
driver: "bridge"
ipam:
config:
- subnet: 192.168.112.0/24