-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 963 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (29 loc) · 963 Bytes
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
services:
erii:
build:
context: .
dockerfile: Dockerfile
container_name: erii-server
restart: always
deploy:
resources:
limits:
memory: 1g
reservations:
memory: 512m
environment:
- JAVA_OPTS=-XX:+UseG1GC -Xms256m -Xmx256m -XX:MaxGCPauseMillis=200 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/erii/oom_heap.hprof -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai
- ERII_CORE_OPTS=-Dpf4j.pluginsDir=./plugins -Dconfig.plugin.dir=./conf/plugin-config -Dconfig.path=./conf/application.conf -Dconfig.souls.dir=./conf/souls -Dconfig.rules.dir=./conf/rules
env_file:
- ./conf/.env.local
volumes:
- ./conf:/erii/conf
- ./store:/erii/store
- ./plugins:/erii/plugins
- ./.conf:/erii/.conf
extra_hosts:
- "hostmachine:host-gateway"
ports:
- "8080:8080"
- "8082:8082"
- "8000:8000"