-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1 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
version: '3'
services:
server:
build:
dockerfile: ./Dockerfile
context: .
image: mesh-proxy:latest
container_name: mesh-proxy-server
restart: always # 重启策略: 容器退出时总是重启容器
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
- NODE_OPTIONS=--max-old-space-size=4096
ulimits:
nofile:
soft: 65536
hard: 65536
network_mode: host
volumes:
- $PWD/config:/app/config
command: node . -c ./config/server.yml
client:
build:
dockerfile: ./Dockerfile
context: .
image: mesh-proxy:latest
container_name: mesh-proxy-client
restart: always # 重启策略: 容器退出时总是重启容器
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
- NODE_OPTIONS=--max-old-space-size=4096
ulimits:
nofile:
soft: 65536
hard: 65536
network_mode: host
volumes:
- $PWD/config:/app/config
command: node . -c ./config/client.yml