-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 2.06 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
# Copyright(c) 2021 aasaam software development group
version: "3"
services:
sms-gateway-api:
container_name: sms-gateway-api
depends_on:
- sms-gateway-mariadb
image: aasaam/sms-gateway
environment:
ASM_PUBLIC_APP_TEST: "false"
ASM_MARIADB_DATABASE: ${ASM_MARIADB_DATABASE:-mariadb-db}
ASM_MARIADB_USER: ${ASM_MARIADB_USER:-mariadb-user}
ASM_MARIADB_PASSWORD: ${ASM_MARIADB_PASSWORD:-mariadb-password}
ASM_MARIADB_HOST: ${ASM_MARIADB_HOST:-sms-gateway-mariadb}
sms-gateway-nginx:
container_name: sms-gateway-nginx
image: nginx:1
depends_on:
- sms-gateway-api
ports:
- 80:80
# - 443:443
environment:
ASM_NGINX_WORKER_PROCESSES: ${ASM_NGINX_WORKER_PROCESSES:-2}
ASM_NGINX_WORKER_RLIMIT_NOFILE: ${ASM_NGINX_WORKER_RLIMIT_NOFILE:-1024}
ASM_NGINX_WORKER_CONNECTIONS: ${ASM_NGINX_WORKER_CONNECTIONS:-512}
ASM_NGINX_ERROR_LOG_LEVEL: ${ASM_NGINX_ERROR_LOG_LEVEL:-warn}
ASM_APP_PORT: ${ASM_APP_PORT:-3001}
ASM_PUBLIC_BASE_URL: ${ASM_PUBLIC_BASE_URL:-/}
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/mime.types:/etc/nginx/mime.types:ro
- ./nginx/common-server.conf:/etc/nginx/common-server.conf:ro
- ./nginx/common-proxy.conf:/etc/nginx/common-proxy.conf:ro
- ./nginx/common-http.conf:/etc/nginx/common-http.conf:ro
- ./nginx/common-protected.conf:/etc/nginx/common-protected.conf:ro
- ./nginx/templates/default.prod.conf.template:/etc/nginx/templates/default.conf.template:ro
# - nginx/common-server.conf # For change behind another reverse proxy server
################
# Dependencies #
################
sms-gateway-mariadb:
container_name: sms-gateway-mariadb
environment:
MYSQL_DATABASE: ${ASM_MARIADB_DATABASE:-mariadb-db}
MYSQL_USER: ${ASM_MARIADB_USER:-mariadb-user}
MYSQL_PASSWORD: ${ASM_MARIADB_PASSWORD:-mariadb-password}
MYSQL_RANDOM_ROOT_PASSWORD: "true"
volumes:
- sms-gateway-mariadb:/var/lib/mysql
image: mariadb:10
volumes:
sms-gateway-mariadb: