ctrlpanel/docker/docker-compose.yml

66 lines
1.2 KiB
YAML
Raw Normal View History

2021-06-05 21:09:18 +00:00
version: '3'
networks:
laravel:
services:
nginx:
build:
context: ../
dockerfile: docker/nginx/Dockerfile
container_name: controlpanel_nginx
ports:
- 80:80
volumes:
2024-02-28 08:26:30 +00:00
- "../:/var/www/html"
2021-06-05 21:09:18 +00:00
depends_on:
- php
- mysql
networks:
- laravel
mysql:
image: mysql
container_name: controlpanel_mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: controlpanel
MYSQL_USER: controlpanel
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
volumes:
- "mysql:/var/lib/mysql:delegated"
networks:
- laravel
php:
build:
context: ../
dockerfile: docker/php/Dockerfile
container_name: controlpanel_php
volumes:
2024-02-28 08:26:30 +00:00
- "../:/var/www/html"
2021-06-05 21:09:18 +00:00
networks:
- laravel
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: controlpanel_phpmyadmin
depends_on:
- mysql
ports:
- '8080:80'
environment:
- PMA_HOST=controlpanel_mysql
- PMA_USER=root
- PMA_PASSWORD=root
- PMA_ARBITRARY=1
networks:
- laravel
volumes:
mysql: