-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
83 lines (74 loc) · 2.32 KB
/
docker-compose.dev.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
# Copyright(c) 2021 aasaam software development group
version: "3"
services:
sms-gateway-api:
container_name: sms-gateway-api
depends_on:
- sms-gateway-mariadb
image: node:15-buster-slim
working_dir: /app/api
volumes:
# development
- ./app/api:/app/api
# cache
- ./tmp/.npm:/root/.npm
environment:
ASM_PUBLIC_APP_TEST: "true"
command: tail -f /dev/null
sms-gateway-cp:
container_name: sms-gateway-cp
depends_on:
- sms-gateway-api
image: node:15-buster-slim
working_dir: /app/cp
volumes:
# development
- ./app/cp:/app/cp
# cache
- ./tmp/.npm:/root/.npm
command: tail -f /dev/null
sms-gateway-nginx:
container_name: sms-gateway-nginx
image: nginx:1
depends_on:
- sms-gateway-api
ports:
- 18888:80
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.dev.conf.template:/etc/nginx/templates/default.conf.template:ro
################
# 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"
image: mariadb:10
##########
# Web UI #
##########
sms-gateway-adminer:
container_name: sms-gateway-adminer
depends_on:
- sms-gateway-mariadb
image: adminer
environment:
ADMINER_DEFAULT_SERVER: sms-gateway-mariadb
ports:
- 18889:8080