-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
executable file
·202 lines (187 loc) · 6 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
version: '3.9'
services:
atlas-rdm:
image: ghcr.io/realdevicemap/realdevicemap/realdevicemap:master
container_name: atlas-rdm
networks:
- atlas-network
restart: unless-stopped
tty: true
depends_on:
- atlas-db
volumes:
# - ./images:/app/resources/webroot/static/img
- backups:/app/backups
# - favicons:/app/resources/webroot/static/favicons
# - /etc/localtime:/etc/localtime:ro
ports:
- 9000:9000
- 9001:9001
environment:
DB_DATABASE: rdmdb
DB_HOST: atlas-db
DB_PORT: 3306
DB_USERNAME: rdmuser
DB_PASSWORD: pokemodrules
DB_ROOT_USERNAME: root
DB_ROOT_PASSWORD: pokemodrules
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
NO_BACKUP: 1
NO_REQUIRE_ACCOUNT: 1
### Uncommenting the following lines will set these values to TRUE (regardless of their value)
# USE_RW_FOR_QUEST: 1
# USE_RW_FOR_RAID: 1
# NO_GENERATE_IMAGES: 1
# NO_PVP: 1
# NO_IV_WEATHER_CLEARING: 1
# NO_CELL_POKEMON: 1
# NO_MEMORY_CACHE: 1
### Uncommenting The following lines will start RDM in lldb and store crash reports in the backups folder
### Running in lldb will use a bit more resources. (Running RDM works like usual)
# entrypoint: ["/bin/sh", "-c", "lldb -b -o \"file ./RealDeviceMap\" -o \"breakpoint set --file main.swift --line 17\" -o \"run\" -o \"process handle SIGPIPE -n true -p true -s false\" -o \"continue\" -k \"bugreport unwind --outfile ./backups/crash-$$(date +%s).log\" -k \"exit\""]
# cap_add:
# - SYS_ADMIN
# security_opt:
# - seccomp=unconfined
# - apparmor=unconfined
#Uncomment the 2 lines below if using as DB on your localhost outside of docker, then comment out or delete all of db and and depends_on: -db lines
# extra_hosts:
# - "host.docker.internal:host-gateway"
atlas-db:
image: mariadb:latest
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password --binlog-expire-logs-seconds=86400
container_name: atlas-db
networks:
- atlas-network
ports:
- 3306:3306
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: pokemodrules
MYSQL_DATABASE: rdmdb
MYSQL_USER: rdmuser
MYSQL_PASSWORD: pokemodrules
volumes:
- ./init:/docker-entrypoint-initdb.d
- ./data:/var/lib/mysql
# - /etc/localtime:/etc/localtime:ro
atlas-pma:
image: phpmyadmin:latest
container_name: atlas-pma
networks:
- atlas-network
depends_on:
- atlas-db
restart: unless-stopped
ports:
- 9200:80
environment:
PMA_HOST: atlas-db
PMA_USER: root
PMA_PASSWORD: pokemodrules
UPLOAD_LIMIT: 300M
atlas-tools:
image: ghcr.io/picklerickve/realdevicemap-tools:master
container_name: atlas-rdmtools
networks:
- atlas-network
depends_on:
- atlas-rdm
restart: unless-stopped
environment:
DB_HOST: atlas-db
DB_NAME: rdmdb
DB_PORT: 3306
DB_USER: root
DB_PSWD: pokemodrules
# MDB_ACTIVE: false
# MDB_HOST: 127.0.0.1
# MDB_NAME: manualdb
# MDB_PORT: 3306
# MDB_USER: mdbuser
# MDB_PSWD: password
# OWN_TS: https://IP:PORT/tile/STYLE/{z}/{x}/{y}/1/png
volumes:
- ./tools/config/docker-php-maxexectime.ini:/usr/local/etc/php/conf.d/docker-php-maxexectime.ini
# - ./tools/config/.htpasswd:/var/www/html/config/.htpasswd # Initial username/password is admin/admin
# - ./tools/config/.htaccess:/var/www/html/.htaccess
# - /etc/localtime:/etc/localtime:ro
ports:
- 9100:80
## Uncomment this block to enable ReactMap
# atlas-reactmap:
# image: ghcr.io/watwowmap/reactmap:main
# container_name: atlas-reactmap
# command: sh -c "yarn start"
# restart: unless-stopped
# depends_on:
# - atlas-db
# networks:
# - atlas-network
# environment:
# SCANNER_DB_HOST: atlas-db
# SCANNER_DB_PORT: 3306
# SCANNER_DB_USER: root
# SCANNER_DB_PASSWORD: pokemodrules
# SCANNER_DB_NAME: rdmdb
# MANUAL_DB_HOST: atlas-db
# MANUAL_DB_PORT: 3306
# MANUAL_DB_USER: root
# MANUAL_DB_PASSWORD: pokemodrules
# MANUAL_DB_NAME: manual_db
# MAP_GENERAL_TITLE: ReactMap
# MAP_GENERAL_START_LAT: 37.808673
# MAP_GENERAL_START_LON: -122.409821
# ARRAY_VALUE_EXAMPLE: "[3, 4, 5]"
# volumes:
# - ./reactmap/reactmap-env:/home/node/.env
# - ./reactmap/reactmap-local.json:/home/node/server/src/configs/local.json
# #- ./reactmap/areas.json:/home/node/server/src/configs/areas.json
# #- ./reactmap/geofence.json/:/home/node/server/src/configs/geofence.json
# security_opt:
# - no-new-privileges:true #https://nodramadevops.com/2019/06/running-docker-application-containers-more-securely/
# ports:
# - "9300:8080"
## Uncomment this block to enable PoracleJS
# atlas-poracle:
# container_name: atlas-poraclejs
# image: ghcr.io/kartuludus/poraclejs:develop
# ports:
# - "9400:3030"
# networks:
# - atlas-network
# depends_on:
# - atlas-db
# restart: unless-stopped
# environment:
# PORACLE_SERVER_HOST: 0.0.0.0
# PORACLE_SERVER_PORT: 3030
# PORACLE_DB_TYPE: mysql
# PORACLE_DB_HOST: atlas-db
# PORACLE_DB_DATABASE: poracle_db
# PORACLE_DB_USER: root
# PORACLE_DB_PASSWORD: pokemodrules
# volumes:
# - ./poracle/config/:/usr/src/app/config/
# - ./poracle/logs/:/usr/src/app/logs/
# - ./poracle/.cache/:/usr/src/app/.cache/
volumes:
backups:
driver: local
networks:
atlas-network:
# images:
# driver: local
# data:
# driver: local
# favicons
# driver: local