Could some good man write a tutorial on how to create a web server in docker?
P.S. I mean a web server complete with php and mysql.
Could some good man write a tutorial on how to create a web server in docker?
P.S. I mean a web server complete with php and mysql.
If you have docker-compose you can use the following to setup apache, php, mariadb and phpmyadmin
#apache_mariadb_phpmyadmin
version: '2'
services:
apache:
image: 'php:apache'
container_name: apache
environment:
- TZ=America/New_York
ports:
- '8080:80'
- '4443:443'
depends_on:
- mariadb
- phpmyadmin
volumes:
- 'apache_data:/var/www/html'
restart: unless-stopped
mariadb:
image: 'bitnami/mariadb:latest'
container_name: mariadb
environment:
- MARIADB_ROOT_PASSWORD="DB_PASSWORD"
- TZ=America/New_York
volumes:
- 'mariadb_data:/bitnami'
restart: unless-stopped
phpmyadmin:
image: 'bitnami/phpmyadmin:latest'
container_name: phpmyadmin
ports:
- '80:80'
- '443:443'
depends_on:
- mariadb
volumes:
- 'phpmyadmin_data:/bitnami'
restart: unless-stopped
volumes:
mariadb_data:
driver: local
phpmyadmin_data:
driver: local
apache_data:
driver: local
If you have docker-compose you can use the following to setup apache, php, mariadb and phpmyadmin
That is great, but i am real noob whit this so can you explain where and hat i have to add
#apache_mariadb_phpmyadmin
version: '2'
services: HERE
apache: HERE
image: 'php:apache'
container_name: apache
environment:
- TZ=Europe/London
ports:
- '8080:80'
- '4443:443'
depends_on:
- mariadb
- phpmyadmin
volumes:
- 'apache_data:/var/www/html'
restart: unless-stopped
mariadb:
image: 'bitnami/mariadb:latest'
container_name: mariadb
environment:
- MARIADB_ROOT_PASSWORD="DB_PASSWORD"
- TZ=Europe/London
volumes:
- 'mariadb_data:/bitnami'
restart: unless-stopped
phpmyadmin:
image: 'bitnami/phpmyadmin:latest'
container_name: phpmyadmin
ports:
- '80:80'
- '443:443'
depends_on:
- mariadb
volumes:
- 'phpmyadmin_data:/bitnami'
restart: unless-stopped
Sorry for that question, but i really not understand much!
Just if is possible explain step by step for noobs like me!
Thanks in advance for your time and patience!
Some Docker images have mysql and nginx included such as Nextcloud.
You would have to do your own research if you want to learn about technology.
Some Docker images have mysql and nginx included such as Nextcloud.
You would have to do your own research if you want to learn about technology.
Actually i want to install 2 websites on my OMV 5, but i don`t know what to install and how to do it, to use my sites!
examples : site1.com site2.com
what i have to do?
Sorry for this question, maybe this is 5-10 mins work for some one who know what he doing, but for me is taking long time . Just need example with those installs. Thanks again!
Don’t know what kind of websites you want to run. Mostly a web server consist of an Apache or Nginx, MySQL, and the service.
Docker images config are vary.
I found this very helpful:
Don’t know what kind of websites you want to run. Mostly a web server consist of an Apache or Nginx, MySQL, and the service.
Docker images config are vary.
just normal sites, i have domain just need to use my server to host the site not to pay for hosting!
Which of this Apache, Nginx, MySQL, CPanel and/or what else have to install 1st and how to configure it?
Can some one make a guide how to do this from zero?
Do i have to install all from portainer or from terminal with apt commands?
As i said before I am a real noob in linux ! Thanks in advance !
Setting up a full web server under Docker to run, for example a Wordpress site, is a pretty advanced task. My suggestion is to get a second device such as a cheap OrangePi or similar and use that instead with Ubuntu server as the OS and then follow a web tutorial on setting up a site. Once this has been mastered then think about trying the same under Docker.
An alternative is to use free web hosting site such as x10 hosting to learn the ropes at no cost.
Setting up a full web server under Docker to run, for example a Wordpress site, is a pretty advanced task. My suggestion is to get a second device such as a cheap OrangePi or similar and use that instead with Ubuntu server as the OS and then follow a web tutorial on setting up a site. Once this has been mastered then think about trying the same under Docker.
An alternative is to use free web hosting site such as x10 hosting to learn the ropes at no cost.
well, i had running site on windows, but i want to learn how to do it in Linux, especially in openmediavault! So if some one have free time, feel free to make me a guide how to do it!
In Portainer you will find a template for Wordpress. And using google you will probably find some suitable guide.
Basically you are using OMV only to install docker and launch portainer. Everything else is pretty much independent of OMV (maybe apart from users and permissions). So any guide related to Wordpress and Docker will work.
I did something and now i lost all templates on Portainer
Application templates list is empty. I uninstalled and installed portainer again, but still no templates there.
What could be the problem and is there any chance to get templates back without reinstaling OVM?
In portainer in settings: everything switched off?
The "use external templates" might be the issue. It says that internal templates are disabled, when external templates are enabled.
The "use external templates" might be the issue. It says that internal templates are disabled, when external templates are enabled.
I disabled external template save and still no other templates?
I added again external template json and got this error
Failure
json: cannot unmarshal string into Go struct field Template.interactive of type bool
but before that they worked!
Did you refresh (circle at the top of the portainer page)
Did you refresh (circle at the top of the portainer page)
when refresh giving same error
Did you refresh (circle at the top of the portainer page)
After you disbled external templates.
Maybe also logout/login and force reload.
After you disbled external templates.
Maybe also logout/login and force reload.
no difference, I thing i have to reisntall OMV!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!