Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Aug 19, 2017
1 parent 18a3d2f commit 3255edc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN \
&& tar -xzf ${NGINX_PAGESPEED_VERSION}.tar.gz \

# get the source
&& cd ${NGINX_BUILD_DIR}; apt-get source nginx -y \
&& cd ${NGINX_BUILD_DIR}; apt-get source nginx=${NGINX_VERSION} -y \
&& mv ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/src/http/modules/ngx_http_image_filter_module.c ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/src/http/modules/ngx_http_image_filter_module.bak \

# apply patch
Expand Down Expand Up @@ -183,9 +183,6 @@ RUN \
# increase memcache max size from 64m to 2g
&& sed -i -e "s/^\-m 64/\-m 2048/g" /etc/memcached.conf \

# redirect ajenti default port
&& sed -i -e "s/\"port\"\: 8000/\"port\"\: 9000/g" /etc/ajenti/config.json \

# fix v8js reference of json first
&& mv /etc/php/5.6/fpm/conf.d/20-json.ini /etc/php/5.6/fpm/conf.d/15-json.ini \

Expand Down Expand Up @@ -415,4 +412,4 @@ RUN \

VOLUME ["/backup", "/home", "/ajenti"]

EXPOSE 22 25 53 54 80 110 143 443 465 587 993 995 1194 3000 3306 5432 5984 6379 9000 9001 10022 11211 27017
EXPOSE 22 25 53 54 80 110 143 443 465 587 993 995 1194 3000 3306 5432 5984 6379 8000 8001 10022 11211 27017
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,25 @@ Ajenti Docker control panel with Ubuntu 16.04 LTS

mkdir -p /opt/ajenticp/{backup,ajenti}

docker run -p 80:80 -p 443:443 -p 3306:3306 -p 9000:9000 -p 9001:9001 -v /opt/ajenticp/ajenti:/ajenti -v /opt/ajenticp/backup:/backup -d niiknow/ajenti-udock
docker run -p 80:80 -p 443:443 -p 8000:8000 -p 8001:8001 -v /opt/ajenticp/ajenti:/ajenti -v /opt/ajenticp/backup:/backup -d niiknow/ajenticp

It is important that you have the data volume mounted externally or with a data container. This will be your data persistent folder

BROWSER
```
https://yourip:9000
https://yourip:8000
```

Ajenti was changed from 8000 to 9000 for better compatibility with other/future apps.

Default Ajenti user/pass: root/admin

For any issue or help with Ajenti: https://github.com/ajenti/ajenti

phpMyAdmin is setup as a Website on port 9001. Use MySQL tab to create a user so you can login. After creating the user, remember to grant access. Hint: use the "RUN" box to execute your SQL.
phpMyAdmin is setup as a Website on port 8001. Use MySQL tab to create a user so you can login. After creating the user, remember to grant access. Hint: use the "RUN" box to execute your SQL.

# Inspired by
[WhatPanel](https://github.com/paimpozhil/WhatPanel) - but instead of CentOS, I focus on simplifying deployment with latest Ubuntu LTS.

# Benefits
So you own a cheap VPS and has setuped your perfect server. Your VPS provider doesn't have snapshot backup or provide little to no backup; and you don't want to mess with your server current configuration. Docker comes to the rescue. You can use this project or similar Docker project to provide a stable and secure environment for hosting.

# LICENSE

The MIT License (MIT)

Copyright (c) 2017 friends@niiknow.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# MIT
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.3"

services:
ajenti:
image: niiknow/ajenticp
container_name: ajenti
cap_add: ['NET_RAW', 'NET_ADMIN']
environment:
- "VESTA_DOMAIN=your-ajenti.panel-dns.com"
volumes:
- "/opt/ajenticp/ajenti:/ajenti"
- "/opt/ajenticp/backup:/backup"
ports:
- "80:80"
- "443:443"
- "8000:8000"
- "8001:8001"
labels:
- "Ajenti Control Panel"
restart: unless-stopped

0 comments on commit 3255edc

Please sign in to comment.