forked from Amit86/minimanager
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6479c23
commit cea2297
Showing
22 changed files
with
330 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM httpd:2.4.33-alpine | ||
RUN apk update; \ | ||
apk upgrade; | ||
COPY minimanager.apache.conf /usr/local/apache2/conf/minimanager.apache.conf | ||
RUN echo "Include /usr/local/apache2/conf/minimanager.apache.conf" \ | ||
>> /usr/local/apache2/conf/httpd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ServerName localhost | ||
|
||
LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so | ||
LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so | ||
LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so | ||
|
||
<VirtualHost *:80> | ||
# Proxy .php requests to port 9000 of the php-fpm container | ||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000/var/www/html/$1 | ||
DocumentRoot /var/www/html/ | ||
<Directory /var/www/html/> | ||
DirectoryIndex index.php | ||
Options Indexes FollowSymLinks | ||
AllowOverride All | ||
Require all granted | ||
</Directory> | ||
|
||
# Send apache logs to stdout and stderr | ||
CustomLog /proc/self/fd/1 common | ||
ErrorLog /proc/self/fd/2 | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: "3.2" | ||
services: | ||
php: | ||
build: './php/' | ||
networks: | ||
- backend | ||
volumes: | ||
- ../:/var/www/html/ | ||
apache: | ||
build: './apache/' | ||
depends_on: | ||
- php | ||
- mysql | ||
networks: | ||
- frontend | ||
- backend | ||
ports: | ||
- "8080:80" | ||
volumes: | ||
- ../:/var/www/html/ | ||
mysql: | ||
image: mysql:5.6.40 | ||
command: --init-file /mysql/init.sql | ||
ports: | ||
- "3306:3306" | ||
volumes: | ||
- ./mysql/data:/var/lib/mysql | ||
- ./mysql/init.sql:/mysql/init.sql | ||
networks: | ||
- backend | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=rootpassword | ||
|
||
healthcheck: | ||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] | ||
timeout: 20s | ||
retries: 10 | ||
networks: | ||
frontend: | ||
backend: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
CREATE DATABASE IF NOT EXISTS mmftc; | ||
USE mmftc; | ||
-- | ||
-- Table structure for table `mm_forum_posts` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `mm_forum_posts`; | ||
|
||
CREATE TABLE `mm_forum_posts` | ||
( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`authorid` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
`authorname` varchar(16) NOT NULL DEFAULT '', | ||
`forum` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
`topic` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
`lastpost` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
`name` varchar(50) NOT NULL DEFAULT '', | ||
`text` longtext, | ||
`time` varchar(255) NOT NULL, | ||
`annouced` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
`sticked` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
`closed` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; | ||
|
||
-- | ||
-- Dumping data for table `mm_forum_posts` | ||
-- | ||
|
||
LOCK | ||
TABLES `mm_forum_posts` WRITE; | ||
/*!40000 ALTER TABLE `mm_forum_posts` DISABLE KEYS */; | ||
INSERT INTO `mm_forum_posts`(`id`, `authorid`, `authorname`, `forum`, `topic`, `lastpost`, `name`, `text`, `time`, | ||
`annouced`, `sticked`) | ||
values (1, 0, 'miniManagerTeam', 1, 1, 1, 'Hello Admin!', | ||
'[b]Hi[/b] !!:D<br /><br />If you are reading this, that means that you have [i]correctly[/i] installed this forum, XD<br /><br /><br /><br />So what\' s next?<br /><br />Edit [color=red]forum.conf.php[/color]<br /><br /><br /><br />And enjoy!<br /><br /><br /><br />Report bugs at [url=https://github.com/TrinityCore/minimanager/issues]MiniManager tracker[/url]<br /><br /><br /><br />Bye!<br /><br />miniManagerTeam','00/00/00 00:00:00',1,0); | ||
/*!40000 ALTER TABLE `mm_forum_posts` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `mm_motd` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `mm_motd`; | ||
|
||
CREATE TABLE `mm_motd` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identifier', | ||
`realmid` int(11) NOT NULL, | ||
`type` longtext NOT NULL, | ||
`content` longtext NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='MOTD System'; | ||
|
||
-- | ||
-- Dumping data for table `mm_motd` | ||
-- | ||
|
||
LOCK TABLES `mm_motd` WRITE; | ||
/*!40000 ALTER TABLE `mm_motd` DISABLE KEYS */; | ||
INSERT INTO `mm_motd` VALUES (1, 1, '02/05/10 14:29:07 Posted by: MiniManager Team', 'Hello Admin\r\n\r\nhelp supporting Minimanager\r\n\r\nhttps://github.com/TrinityCore/minimanager/issues\r\n\r\nif you found a bug or improved it, | ||
please contribute\r\n\r\nor it will eventually stop development from lack of interrest from community '); | ||
/*!40000 ALTER TABLE `mm_motd` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
-- Table structure for table `mm_point_system_invites` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `mm_point_system_invites`; | ||
CREATE TABLE `mm_point_system_invites` ( | ||
`entry` int(11) NOT NULL auto_increment, | ||
`PlayersAccount` char(50) default NULL, | ||
`InvitedBy` char(50) default NULL, | ||
`InviterAccount` char(50) default NULL, | ||
`Treated` int(1) NOT NULL default '0', | ||
`Rewarded` int(1) NOT NULL default '0', | ||
UNIQUE KEY `entry` (`entry`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | ||
|
||
-- | ||
-- Table structure for table `mm_account` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `mm_account`; | ||
CREATE TABLE `mm_account` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`username` varchar(32) NOT NULL DEFAULT '', | ||
`salt` binary(32), | ||
`verifier` binary(32), | ||
`email` text, | ||
`joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`last_ip` varchar(30) NOT NULL DEFAULT '127.0.0.1', | ||
`locked` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
`expansion` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
`authkey` varchar(40) DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `idx_username` (`username`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Accounts pending verification'; | ||
|
||
DROP TABLE IF EXISTS `mm_password_resets`; | ||
CREATE TABLE `mm_password_resets` ( | ||
`token` binary(32) not null, | ||
`accountId` int(11) unsigned not null, | ||
`oldsalt` binary(32), | ||
`salt` binary(32), | ||
`verifier` binary(32), | ||
`time` bigint unsigned, | ||
primary key (`token`) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM php:8.0-fpm-alpine | ||
RUN apk update \ | ||
apk upgrade; | ||
RUN apk add --upgrade php8-gmp gmp-dev; | ||
|
||
RUN docker-php-ext-install mysqli gmp; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=php_gmp.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
config.php | ||
vendor/ | ||
.idea/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "trinitycore/minimanager", | ||
"description": "Web portal for TrinityCore emulator", | ||
"type": "project", | ||
"license": "gpl-2.0", | ||
"minimum-stability": "stable", | ||
"require": { | ||
"php": "^7.4|^8.0|^8.1", | ||
"ext-gmp": "*", | ||
"ext-mysqli": "*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.