forked from Olament/gDHT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.18 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
nginx:
image: linuxserver/letsencrypt
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- URL=guo.sh
- SUBDOMAINS=www,
- VALIDATION=http
- DNSPLUGIN=cloudflare #optional
- [email protected] #optional
volumes:
- ./nginx:/config
ports:
- 443:443
- 80:80 #optional
depends_on:
- web
web:
build: web/.
depends_on:
- server
crawler:
build: crawler/.
network_mode: "host"
server:
build: server/.
depends_on:
- elastic
- redis
ports:
- "50051:50051"
environment:
- username=crawler
- password=PASSWORD
redis:
image: "redis:alpine"
elastic:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.8.1"
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
expose:
- "9200"
volumes:
esdata:
driver: local