Based on original aapanel/aapanel:lib (as of 03-03-2023)
Fixed dockerized Aapanel
Testet and worked on date 03-03-2023
- Uses original aapanel image from Docker Hub.
- Creates an startup script to start all services on boot.
- Creates Volumes, so installed apps wont get missed.
- Disables false-positives of healthcheck
Please check the Dockerfile for exec information.
Run following command for instant run:
docker run -dt --name aapanel --no-healthcheck -p 7821:7800 -v /usr -v /etc -v /dev/shm -v /sys/fs/cgroup -v aapanel_data:/www ed1k/aapanel:latest
This command deactivates the healthcheck of base image. Else it will show unhealthy state of your container, after setting the panel to ssl (base image checks connection of http://).
security Entry: http://<your ip>:7820/aapanel
username: aapanel
password: aapanel123
These steps are assuming that you use following setup:
- portainer
- nginx-proxy-manager (npm) as container
- Cloudflare
If not, your setup might differ.
- deploy aapanel using code above
- create network (just give it a name and create) using portainer
- add this network in npm and in aapanel container
- login to the panel
- go to settings and change username and password and save
- go to settings and set domain
- setup your domain in cloudflare
- in npm set your domain with Scheme "http://", port 7800, use "aapanel" (container name) as Hostname, turn on force ssl and let it create its Lets Encrypt certificate.
- login into aapanel with your domain
- create ssl certificate in cloudflare for your domain
- in settings -> security click on "set" at "Panel SSL", copy here your certificate from cloudflare and save.
- change the "Panel SSL" Trigger in aapanel, even if its already green and save. (Its buggy, as it is not activated)
- change Scheme in npm to https:// and save
- now you can login again into aapanel and make your one-click-deplyoment
- open ssl-port in phpadmin settings.
One-click deployment doesnt always show the newest versions. Phpmyadmin 4.9 for example could be needed to uninstalled so the newer version 5.2 can be installed, else some error could error when opening it.