forked from RealDeviceMap/RealDeviceMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (105 loc) · 3.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3.1'
services:
rdm:
image: ghcr.io/realdevicemap/realdevicemap/realdevicemap:master
container_name: realdevicemap
restart: unless-stopped
tty: true
depends_on:
- db
volumes:
- images:/app/resources/webroot/static/img
- backups:/app/backups
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# - ./local.json:/app/resources/config/local.json # local.json usage
# - favicons:/app/resources/webroot/static/favicons
ports:
- 9000:9000
- 9001:9001
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "10"
environment:
DB_DATABASE: rdmdb
DB_HOST: db
DB_PORT: 3306
DB_USERNAME: rdmuser
DB_PASSWORD: YourStrongPassw0rd!
DB_ROOT_USERNAME: root
DB_ROOT_PASSWORD: YourStrongRootPassw0rd!
WEB_SERVER_ADDRESS: 0.0.0.0
WEB_SERVER_PORT: 9000
WEBHOOK_SERVER_ADDRESS: 0.0.0.0
WEBHOOK_SERVER_PORT: 9001
WEBHOOK_ENDPOINT_TIMEOUT: 30
WEBHOOK_ENDPOINT_CONNECT_TIMEOUT: 30
MEMORY_CACHE_CLEAR_INTERVAL: 900
MEMORY_CACHE_KEEP_TIME: 3600
RAW_THREAD_LIMIT: 100
LOG_LEVEL: debug #debug, info, warning
# LOGINLIMIT_COUNT: 15
# LOGINLIMIT_INTERVALL: 300
# PVP_DEFAULT_RANK: dense #dense,competition,ordinal
# PVP_LITTLE_FILTER: 450
# PVP_GREAT_FILTER: 1400
# PVP_ULTRA_FILTER: 2350
# PVP_LEVEL_CAPS: 40,50,51 #default only 50
# QUEST_RETRY_LIMIT: 10
# SPIN_DISTANCE: 80
# ACC_MAX_ENCOUNTERS: 0
# ACC_DISABLE_PERIOD: 86400
### Uncommenting the following lines will set these values to TRUE (regardless of their value)
# USE_RW_FOR_QUEST: 1
# USE_RW_FOR_RAID: 1
# USE_RW_FOR_POKES: 1
# NO_GENERATE_IMAGES: 1
# NO_PVP: 1
# NO_IV_WEATHER_CLEARING: 1
# NO_CELL_POKEMON: 1
# SCAN_LURE_ENCOUNTER: 1
# SAVE_SPAWNPOINT_LASTSEEN: 1
# NO_MEMORY_CACHE: 1
# NO_BACKUP: 1
# NO_DB_CLEARER: 1
# STOP_ALL_BOOTSTRAPPING: 1
# NO_REQUIRE_ACCOUNT: 1
### Uncommenting The following lines will start RDM in lldb and show crash reports in logs
### Running in lldb will use more resources, but RDM will run as usual.
# entrypoint: ["./Scripts/run-lldb.bash"]
# cap_add:
# - SYS_ADMIN
# security_opt:
# - seccomp=unconfined
# - apparmor=unconfined
### END - Running in lldb
### If you want to use a non docker database enable following lines and
### change the DB_HOST environment variable to 'host.docker.internal'
# extra_hosts:
# - "host.docker.internal:host-gateway"
db:
image: mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password --binlog-expire-logs-seconds=86400
container_name: realdevicemap-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: YourStrongRootPassw0rd!
MYSQL_DATABASE: rdmdb
MYSQL_USER: rdmuser
MYSQL_PASSWORD: YourStrongPassw0rd!
ports:
- 3306:3306
volumes:
- data:/var/lib/mysql
# - /etc/localtime:/etc/localtime:ro
volumes:
images:
driver: local
backups:
driver: local
data:
driver: local
# favicons
# driver: local