-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (83 loc) · 1.96 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
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
77
78
79
80
81
82
83
84
85
86
87
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: postgres
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
volumes:
- ./postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: always
networks:
- smsgw-network
rabbitmq:
image: rabbitmq:3.12-management-alpine
container_name: rabbitmq
env_file:
- .env
volumes:
- ./rabbitmq/data:/var/lib/rabbitmq
- ./rabbitmq/log:/var/log/rabbitmq
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
- RABBITMQ_VHOST=${RABBITMQ_VHOST}
ports:
- "${RABBITMQ_PORT}:5672"
- "${RABBITMQ_MANAGEMENT_PORT}:15672"
- "${RABBITMQ_PROMETHEUS_PORT}:15692" # Prometheus metrics exporter
restart: always
networks:
- smsgw-network
msggw1:
image: sms-mms-gw:latest
container_name: msggw1
env_file:
- .env
restart: always
networks:
- smsgw-network
expose:
- "3000"
- "2775"
- "2566"
environment:
- SERVER_ID=msggw1-1
msggw2:
image: sms-mms-gw:latest
container_name: msggw2
env_file:
- .env
restart: always
networks:
- smsgw-network
expose:
- "3000"
- "2775"
- "2566"
environment:
- SERVER_ID=msggw1-2
haproxy:
image: haproxy:latest
container_name: haproxy
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- "80:80"
- "2775:2775"
- "2566:2566"
networks:
- smsgw-network
restart: always
networks:
smsgw-network:
driver: bridge