-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.45 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
60
61
62
63
64
65
66
67
services:
proxy:
image: ghcr.io/fishhawk/wneg-proxy
ports:
- 80:80
volumes:
- ${DATA_PATH}/files-web:/data/files-web
- ${DATA_PATH}/files-wenku:/data/files-wenku
- ${DATA_PATH}/files-extra:/data/files-extra
restart: always
server:
image: ghcr.io/fishhawk/wneg-server
depends_on:
- mongo
environment:
- HTTPS_PROXY
- EMAIL_PASSWORD
- JWT_SECRET
- PIXIV_COOKIE_PHPSESSID
- DB_HOST_MONGO=mongo
- DB_HOST_ES=elasticsearch
- DB_HOST_REDIS=redis
ports:
- 8081:8081
volumes:
- ${DATA_PATH}/files-web:/data/files-web
- ${DATA_PATH}/files-wenku:/data/files-wenku
- ${DATA_PATH}/files-extra:/data/files-extra
restart: always
mongo:
image: mongo:6.0.3
environment:
- MONGO_INITDB_DATABASE=auth
ports:
- 27017:27017
volumes:
- ${DATA_PATH}/db:/data/db
restart: always
elasticsearch:
image: elasticsearch:8.6.1
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- ${DATA_PATH}/es/data:/usr/share/elasticsearch/data
- ${DATA_PATH}/es/plugins:/usr/share/elasticsearch/plugins
ports:
- 9200:9200
restart: always
redis:
image: redis:7.2.1
ports:
- 6379:6379
restart: always