-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
50 lines (46 loc) · 1.3 KB
/
docker-compose.prod.yml
File metadata and controls
50 lines (46 loc) · 1.3 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
# Copyright(c) 2021 aasaam software development group
version: "3"
services:
# backend
htm-backend:
depends_on:
- htm-mongo
- htm-redis
container_name: htm-backend
build:
args:
- PROXY_HTTP=${PROXY_HTTP:-}
context: .
dockerfile: Dockerfile.backend
working_dir: /app/api
environment:
ASM_PUBLIC_APP_TEST: "false"
# front and nginx
htm-web:
depends_on:
- htm-backend
container_name: htm-web
build:
args:
- PROXY_HTTP=${PROXY_HTTP:-}
context: .
dockerfile: Dockerfile.web
ports:
- 80: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_NGINX_TMPFS_CACHE_SIZE_MB: ${ASM_NGINX_TMPFS_CACHE_SIZE_MB:-128}
ASM_APP_PORT: ${ASM_APP_PORT:-3001}
ASM_PUBLIC_BASE_URL: ${ASM_PUBLIC_BASE_URL:-/}
tmpfs:
- /nginx-tmpfs:rw,nodev,nosuid,noexec,noatime,size=${ASM_NGINX_TMPFS_CACHE_SIZE_MB:-192}m
# databases
htm-redis:
container_name: htm-redis
image: redis:6
htm-mongo:
container_name: htm-mongo
image: mongo:4