-
-
Notifications
You must be signed in to change notification settings - Fork 556
/
docker-compose.restapi.yml
94 lines (88 loc) · 2.23 KB
/
docker-compose.restapi.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
88
89
90
91
92
93
94
version: "3"
services:
redis:
image: redis:7.0.5-alpine
restart: always
volumes:
- redis:/data
networks:
- jasmin
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
retries: 3
timeout: 5s
rabbit-mq:
image: rabbitmq:3.11.3-alpine
restart: always
volumes:
- rabbitmq:/var/lib/rabbitmq
networks:
- jasmin
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 30s
timeout: 30s
retries: 3
jasmin:
build:
context: ./
dockerfile: ./docker/Dockerfile.restapi.alpine
image: jasmin:restapi
restart: always
ports:
- '${FORWARD_JASMIN_SMPP_PORT:-2775}:2775'
- '${FORWARD_JASMIN_CLI_PORT:-8990}:8990'
- '${FORWARD_JASMIN_HTTP_PORT:-1401}:1401'
volumes:
- jasmin_config:/etc/jasmin
- jasmin_store:/etc/jasmin/store
- jasmin_logs:/var/log/jasmin
tmpfs:
- /tmp
networks:
- jasmin
depends_on:
redis:
condition: service_healthy
rabbit-mq:
condition: service_healthy
environment:
REDIS_CLIENT_HOST: ${REDIS_CLIENT_HOST:-redis}
REDIS_CLIENT_PORT: ${REDIS_CLIENT_PORT:-6379}
AMQP_BROKER_HOST: ${AMQP_BROKER_HOST:-rabbit-mq}
AMQP_BROKER_PORT: ${AMQP_BROKER_PORT:-5672}
ENABLE_PUBLISH_SUBMIT_SM_RESP: ${ENABLE_PUBLISH_SUBMIT_SM_RESP:-1}
RESTAPI_MODE: ${RESTAPI_MODE:-0}
jasmin-restapi:
build:
context: ./
dockerfile: ./docker/Dockerfile.restapi
image: jasmin:restapi
restart: always
ports:
- '${FORWARD_JASMIN_RESTAPI_PORT:-8080}:8080'
volumes:
- restapi_logs:/var/log/jasmin
tmpfs:
- /tmp
networks:
- jasmin
depends_on:
- jasmin
environment:
REDIS_CLIENT_HOST: ${REDIS_CLIENT_HOST:-redis}
REDIS_CLIENT_PORT: ${REDIS_CLIENT_PORT:-6379}
AMQP_BROKER_HOST: ${AMQP_BROKER_HOST:-rabbit-mq}
AMQP_BROKER_PORT: ${AMQP_BROKER_PORT:-5672}
RESTAPI_MODE: ${RESTAPI_MODE:-1}
RESTAPI_OLD_HTTP_HOST: ${RESTAPI_OLD_HTTP_HOST:-jasmin}
networks:
jasmin:
driver: bridge
volumes:
jasmin_config: {}
jasmin_store: {}
jasmin_logs: {}
restapi_logs: {}
rabbitmq: {}
redis: {}