-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.17 KB
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
version: '3.8'
services:
# MQTT Broker
mosquitto:
image: eclipse-mosquitto:latest
container_name: sms_mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
networks:
- sms_network
# Main SMS Gateway
sms_gateway:
build: .
container_name: sms_gateway
ports:
- "5001:5001"
volumes:
- ./instance:/app/instance
- ./config.json:/app/config.json
environment:
- FLASK_APP=app.py
- FLASK_ENV=production
depends_on:
- mosquitto
networks:
- sms_network
restart: unless-stopped
# OTP Application
otp_app:
build:
context: ./otp_app
dockerfile: Dockerfile
container_name: otp_app
ports:
- "5002:5002"
volumes:
- ./otp_app/templates:/app/templates
environment:
- FLASK_APP=otp_app_backend.py
- FLASK_ENV=production
depends_on:
- sms_gateway
networks:
- sms_network
restart: unless-stopped
networks:
sms_network:
driver: bridge
volumes:
mosquitto_data:
mosquitto_log: