mirror of
https://github.com/alextselegidis/plainpad.git
synced 2024-09-11 02:45:28 +03:00
46 lines
976 B
YAML
46 lines
976 B
YAML
services:
|
|
php-fpm:
|
|
build: docker/php-fpm
|
|
working_dir: /var/www/html
|
|
extra_hosts:
|
|
- host.docker.internal:host-gateway
|
|
volumes:
|
|
- '.:/var/www/html'
|
|
- './docker/php-fpm/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini'
|
|
ports:
|
|
- '3000:3000'
|
|
|
|
nginx:
|
|
image: 'nginx:1.23.3-alpine'
|
|
working_dir: /var/www/html
|
|
volumes:
|
|
- '.:/var/www/html'
|
|
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
|
|
ports:
|
|
- '80:80'
|
|
|
|
mysql:
|
|
image: 'mysql:8.0'
|
|
volumes:
|
|
- './docker/mysql:/var/lib/mysql'
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=secret
|
|
- MYSQL_DATABASE=plainpad
|
|
- MYSQL_USER=user
|
|
- MYSQL_PASSWORD=password
|
|
ports:
|
|
- '3306:3306'
|
|
|
|
phpmyadmin:
|
|
image: 'phpmyadmin:5.2.1'
|
|
ports:
|
|
- '8080:80'
|
|
environment:
|
|
- 'PMA_HOST=mysql'
|
|
|
|
mailpit:
|
|
image: 'axllent/mailpit:v1.7'
|
|
ports:
|
|
- '8025:8025'
|
|
- '1025:1025'
|