Nameless 1.0.16 update. Fixed some terrible bugs!
Removed nano from the image docker-compose re-structure to improve layer caching Explicitly use mysql:5.7 for backend db
This commit is contained in:
parent
ff56089cd4
commit
695e0c2695
@ -49,7 +49,7 @@ $ docker build -t namelessmc .
|
|||||||
If you want to specify the version:
|
If you want to specify the version:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker build --build-arg NAMELESSMC_VERSION=1.0.16 -t namelessmc .
|
$ docker build --build-arg NAMELESSMC_VERSION=1.0.21 -t namelessmc .
|
||||||
```
|
```
|
||||||
|
|
||||||
The version number **MUST BE** listed [here](https://github.com/NamelessMC/Nameless/releases) and it's **not guranteed** to work.
|
The version number **MUST BE** listed [here](https://github.com/NamelessMC/Nameless/releases) and it's **not guranteed** to work.
|
||||||
@ -68,7 +68,7 @@ After deploying the containers, open up the corresponding URL in your web browse
|
|||||||
|
|
||||||
By default, the web server will be available at `0.0.0.0:80`, means if you deployed it on you own computer, the URL is gonna be `http://localhost`. Instead, if you did it on a remote server, the URL would be `http://<your-server-ip-addr>`.
|
By default, the web server will be available at `0.0.0.0:80`, means if you deployed it on you own computer, the URL is gonna be `http://localhost`. Instead, if you did it on a remote server, the URL would be `http://<your-server-ip-addr>`.
|
||||||
|
|
||||||
Follow the install instructions. When the database configuration page shows up, fill in `nameless_db` for the *database address*. For database username, password and database name, fill `nameless` for all of them, if you used default database credentials.
|
Follow the install instructions. When the database configuration page shows up, fill in `db` for the *database address*. For database username, password and database name, fill `nameless` for all of them, if you used default database credentials.
|
||||||
|
|
||||||
When you're done, submit and follow the rest of installation.
|
When you're done, submit and follow the rest of installation.
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,23 @@
|
|||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
nameless:
|
nameless:
|
||||||
build: src
|
build:
|
||||||
|
context: src
|
||||||
|
restart: unless-stopped
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql
|
image: mysql:5.7
|
||||||
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- 3306
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: nameless
|
- "MYSQL_ROOT_PASSWORD=nameless"
|
||||||
MYSQL_USER: nameless
|
- "MYSQL_USER=nameless"
|
||||||
MYSQL_PASSWORD: nameless
|
- "MYSQL_PASSWORD=nameless"
|
||||||
MYSQL_DATABASE: nameless
|
- "MYSQL_DATABASE=nameless"
|
||||||
|
|||||||
@ -1,25 +1,27 @@
|
|||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
|
|
||||||
ARG NAMELESSMC_VERSION=1.0.16
|
ARG NAMELESSMC_VERSION=1.0.21
|
||||||
|
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
||||||
RUN docker-php-source extract \
|
RUN docker-php-source extract \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install libmcrypt-dev libldap2-dev nano libpng12-dev libjpeg62-turbo-dev libfreetype6-dev curl tar -y \
|
&& apt-get install -y libmcrypt-dev libldap2-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev curl tar \
|
||||||
&& docker-php-ext-install pdo pdo_mysql mysqli \
|
&& docker-php-ext-install pdo pdo_mysql mysqli \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
||||||
&& docker-php-ext-install -j$(nproc) gd mcrypt \
|
&& docker-php-ext-install -j$(nproc) gd mcrypt \
|
||||||
&& a2enmod rewrite \
|
&& a2enmod rewrite \
|
||||||
&& docker-php-source delete \
|
&& docker-php-source delete
|
||||||
&& curl -Lo nameless.tar.gz https://github.com/NamelessMC/Nameless/archive/v$NAMELESSMC_VERSION.tar.gz \
|
|
||||||
|
RUN curl -Lo nameless.tar.gz https://github.com/NamelessMC/Nameless/archive/v$NAMELESSMC_VERSION.tar.gz \
|
||||||
&& tar -xvf nameless.tar.gz \
|
&& tar -xvf nameless.tar.gz \
|
||||||
&& mv Nameless-$NAMELESSMC_VERSION/* /var/www/html/ \
|
&& mv Nameless-$NAMELESSMC_VERSION/* /var/www/html/ \
|
||||||
&& bash -c "mv Nameless-$NAMELESSMC_VERSION/.[^.]* /var/www/html/" \
|
&& bash -c "mv Nameless-$NAMELESSMC_VERSION/.[^.]* /var/www/html/" \
|
||||||
&& rm -rf nameless.tar.gz Nameless-$NAMELESSMC_VERSION \
|
&& rm -rf nameless.tar.gz Nameless-$NAMELESSMC_VERSION \
|
||||||
&& chown -R www-data:www-data /var/www/html \
|
&& chown -R www-data:www-data /var/www/html \
|
||||||
&& chmod 755 -R /var/www/html \
|
&& chmod 755 -R /var/www/html
|
||||||
&& apt-get clean \
|
|
||||||
|
RUN apt-get clean \
|
||||||
&& apt-get autoclean \
|
&& apt-get autoclean \
|
||||||
&& apt-get autoremove --purge -y \
|
&& apt-get autoremove --purge -y \
|
||||||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user