-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (58 loc) · 1.37 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
version: "3"
services:
web:
image: 'softbrix/shatabang-server:build'
build:
context: .
dockerfile: ./server/Dockerfile
restart: unless-stopped
hostname: 'h.sehr.se/shatabang/'
environment:
- _BASE_URL=<url>
- _GOOGLE_AUTH=<google oauth2 code>
- _GOOGLE_AUTH_ALLOW=<list of emails/usernames>
- _SERVER_SALT=<salt>
- _ADMIN_HASH=<hashed admin password>
ports:
- '3000:3000'
volumes:
- './data/cache:/mnt/cache'
- './data/sorted/:/mnt/sorted'
depends_on:
- "redis"
processor:
image: 'softbrix/shatabang-processor:build'
build:
context: .
dockerfile: ./processor/Dockerfile
restart: unless-stopped
command: node --inspect=0.0.0.0:9229 main.js
mem_limit: 6g
environment:
- _DB_VERSION=202101
- _DEBUG_TASK_PROCESSOR=false
- _SHARP_FAIL_ON_ERROR=true
- _IGNORE_DUPLICATES=false
ports:
- '9229:9229'
volumes:
- './data/cache:/mnt/cache'
- './data/sorted/:/mnt/sorted'
depends_on:
- "redis"
redis:
image: redis
restart: always
ports:
- '6379:6379'
volumes:
- './data/cache/redis:/data'
webdav:
image: softbrix/webdav
ports:
- "3012:80"
volumes:
- ./data/sorted/import:/webdav
environment:
- READWRITE=true
- HTPASSWD=webdav:kK1eUy0t2agv6