66 lines
1.1 KiB
YAML
66 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
networks:
|
|
laravel:
|
|
|
|
services:
|
|
nginx:
|
|
build:
|
|
context: ../
|
|
dockerfile: docker/nginx/Dockerfile
|
|
container_name: ctrlpanel_nginx
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- "../:/var/www/html"
|
|
depends_on:
|
|
- php
|
|
- mysql
|
|
networks:
|
|
- laravel
|
|
|
|
mysql:
|
|
image: mysql
|
|
container_name: ctrlpanel_mysql
|
|
restart: unless-stopped
|
|
tty: true
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
MYSQL_DATABASE: ctrlpanel
|
|
MYSQL_USER: ctrlpanel
|
|
MYSQL_PASSWORD: root
|
|
MYSQL_ROOT_PASSWORD: root
|
|
volumes:
|
|
- "mysql:/var/lib/mysql:delegated"
|
|
networks:
|
|
- laravel
|
|
|
|
php:
|
|
build:
|
|
context: ../
|
|
dockerfile: docker/php/Dockerfile
|
|
container_name: ctrlpanel_php
|
|
volumes:
|
|
- "../:/var/www/html"
|
|
networks:
|
|
- laravel
|
|
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin
|
|
container_name: ctrlpanel_phpmyadmin
|
|
depends_on:
|
|
- mysql
|
|
ports:
|
|
- '8080:80'
|
|
environment:
|
|
- PMA_HOST=ctrlpanel_mysql
|
|
- PMA_USER=root
|
|
- PMA_PASSWORD=root
|
|
- PMA_ARBITRARY=1
|
|
networks:
|
|
- laravel
|
|
|
|
volumes:
|
|
mysql:
|