mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-11 00:52:25 +08:00
init
This commit is contained in:
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: '2'
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:3.2
|
||||
container_name: eidb
|
||||
volumes:
|
||||
- /data/eiblog/db:/data/db
|
||||
restart: always
|
||||
elasticsearch:
|
||||
image: elasticsearch:2.4
|
||||
container_name: eisearch
|
||||
volumes:
|
||||
- /data/eiblog/conf/es/config:/usr/share/elasticsearch/config
|
||||
- /data/eiblog/conf/es/plugins:/usr/share/elasticsearch/plugins
|
||||
- /data/eiblog/conf/es/data:/usr/share/elasticsearch/data
|
||||
- /data/eiblog/conf/es/logs:/usr/share/elasticsearch/logs
|
||||
environment:
|
||||
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
|
||||
# 需注释掉
|
||||
ports:
|
||||
- "9200:9200"
|
||||
restart: always
|
||||
eiblog:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog
|
||||
container_name: eiblog
|
||||
volumes:
|
||||
- /data/eiblog/logdata:/eiblog/logdata
|
||||
- /data/eiblog/conf:/eiblog/conf
|
||||
links:
|
||||
- elasticsearch
|
||||
- mongodb
|
||||
ports:
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
- "8080:8080"
|
||||
restart: always
|
||||
Reference in New Issue
Block a user