-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
53 lines (53 loc) · 1.38 KB
/
docker-compose.yaml
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
networks:
internal:
external: true
name: internal
main:
external: true
name: main
services:
haproxy_public:
image: haproxy:3.0-alpine
hostname: haproxy-public
container_name: proxy_public
networks:
- main
ports:
- "${PUBLIC_IP}:${PUBLIC_PORT_HTTP}:80"
- "${PUBLIC_IP}:${PUBLIC_PORT_HTTPS}:443"
ulimits:
nofile: 10240
volumes:
- type: bind
source: ${DATA_BASE_PATH}/haproxy-public
target: /usr/local/etc/haproxy
read_only: true
- type: bind
source: ${DATA_BASE_PATH}/haproxy-public-ssl
target: /usr/local/etc/ssl/certs
read_only: true
- type: bind
source: ${DATA_BASE_PATH}/haproxy-public-stats
target: /var/lib/haproxy-socket
read_only: false
haproxy_internal:
image: haproxy:3.0-alpine
hostname: haproxy-internal
container_name: proxy_internal
networks:
- internal
ports:
- "${PRIVATE_IP}:${PRIVATE_PORT_HTTP}:80"
- "${PRIVATE_IP}:${PRIVATE_PORT_HTTPS}:443"
- "${PRIVATE_IP}:5432:5432"
ulimits:
nofile: 10240
volumes:
- type: bind
source: ${DATA_BASE_PATH}/haproxy-internal
target: /usr/local/etc/haproxy
read_only: true
- type: bind
source: ${DATA_BASE_PATH}/haproxy-internal-ssl
target: /usr/local/etc/ssl/certs
read_only: true