App Jquery PHP and Mysql Crud
686
App Jquery PHP and Mysql Crud
Github repository: https://github.com/JAVI-CC/Jquery-Ajax-PHP-Mysql/tree/docker_version
$ git clone -b docker_version https://github.com/JAVI-CC/Jquery-Ajax-PHP-Mysql.git
$ cd Jquery-Ajax-PHP-Mysql
$ cp .env.example .env
$ docker compose up -d#version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
image: javi98/jquery-ajax-php-mysql:1.0.0
container_name: jquery-ajax-php-mysql-app
restart: unless-stopped
depends_on:
- db
nginx:
image: nginx:alpine
container_name: jquery-ajax-php-mysql-web
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./:/var/www/html
- ./docker-config/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
db:
image: mariadb:11.2.2
container_name: jquery-ajax-php-mysql-db
restart: unless-stopped
environment:
MARIADB_DATABASE: calderas
MARIADB_ROOT_PASSWORD: 12345678
ports:
- "3306:3306"
volumes:
- ./docker-config/mariadb/:/docker-entrypoint-initdb.d
- db-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:5.2.1
container_name: jquery-ajax-php-mysql-phpmyadmin
restart: unless-stopped
ports:
- 8085:80
environment:
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 350M
PMA_HOST: jquery-ajax-php-mysql-db
PMA_USER: root
PMA_PASSWORD: 12345678
depends_on:
- db
networks:
jquery-ajax-php-mysql:
driver: bridge
volumes:
db-data:Once you have the containers deployed, you can access http://localhost:80
Content type
Image
Digest
sha256:a9f86cd6f…
Size
146.3 MB
Last updated
about 2 years ago
docker pull javi98/jquery-ajax-php-mysql