54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
services:
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./www/public:/var/www/public
|
|
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./config/ssl:/etc/ssl
|
|
depends_on:
|
|
- php
|
|
|
|
php:
|
|
build: ./docker/php
|
|
container_name: php
|
|
volumes:
|
|
- ./www:/var/www
|
|
- ./config/php/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
mariadb:
|
|
image: mariadb:latest
|
|
container_name: mariadb
|
|
restart: always
|
|
volumes:
|
|
- ./db:/var/lib/mysql
|
|
- ./config/mysql/my.cnf:/etc/mysql/my.cnf
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=12345
|
|
- MYSQL_DATABASE=db
|
|
- MYSQL_USER=pma
|
|
- MYSQL_PASSWORD=12345
|
|
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin:latest
|
|
container_name: pma
|
|
restart: always
|
|
environment:
|
|
PMA_HOST: mariadb
|
|
#PMA_ABSOLUTE_URI: http://localhost/pma/
|
|
ports:
|
|
- 8080:80
|
|
depends_on:
|
|
- mariadb
|
|
|
|
composer:
|
|
image: composer/composer:latest
|
|
command: ["composer", "install"]
|
|
volumes:
|
|
- ./www:/app
|