-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
76 lines (71 loc) · 1.6 KB
/
docker-compose.prod.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
services:
haproxy:
build:
context: ./infrastructure/load_balancer
dockerfile: Dockerfile.prod
container_name: haproxy
network_mode: host
ports:
- "60000-65000:60000-65000" # Map port range for load balancer
networks:
- expensify_network
depends_on:
- web-a
- web-b
environment:
- BALANCER_MODE=production # Optional: pass custom environment variables for prod
restart: always
web-a:
build:
context: ./infrastructure/web_server
dockerfile: Dockerfile.prod
container_name: web-a
ports:
- "80"
networks:
- expensify_network
environment:
APP_ENV: production
MESSAGE: "Web Server: B"
restart: always
web-b:
build:
context: ./infrastructure/web_server
dockerfile: Dockerfile.prod
container_name: web-b
ports:
- "80"
networks:
- expensify_network
environment:
APP_ENV: production
MESSAGE: "Web Server: A"
restart: always
nagios:
image: jasonrivers/nagios:latest
container_name: nagios
ports:
- "8080:80"
environment:
- NAGIOS_TIMEZONE=UTC
volumes:
- ./infrastructure/nagios/etc:/opt/nagios/etc/
- ./infrastructure/nagios/libexec:/opt/nagios/libexec/
restart: always
networks:
- expensify_network
mkdocs:
container_name: mkdocs
image: squidfunk/mkdocs-material
ports:
- "8000:8000"
volumes:
- ./mkdocs:/docs
restart: always
networks:
- expensify_network
networks:
expensify_network:
driver: bridge
name: expensify_network