71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
version: '3'
|
|
services:
|
|
# PHP 5.6 FPM
|
|
fpm56:
|
|
build: ./dockerfiles/php-fpm/5.6/debian-8
|
|
image: php-fpm:5.6-debian
|
|
container_name: fpm56
|
|
volumes:
|
|
- ${WORKSPACE}:/home/vhosts
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '1g'
|
|
max-file: '10'
|
|
# PHP 7.0 FPM
|
|
fpm70:
|
|
build: ./dockerfiles/php-fpm/7.0/debian-9
|
|
image: php-fpm:7.0-debian
|
|
container_name: fpm70
|
|
volumes:
|
|
- ${WORKSPACE}:/home/vhosts
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '1g'
|
|
max-file: '10'
|
|
# MailCatcher
|
|
mailcatcher:
|
|
build: ./dockerfiles/mailcatcher
|
|
image: mailcatcher:0.6.5
|
|
container_name: mailcatcher
|
|
ports:
|
|
- '1080:1080'
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '1g'
|
|
max-file: '10'
|
|
# MariaDB
|
|
db:
|
|
build: ./dockerfiles/mariadb/10.2/official
|
|
image: mariadb:10.2-official
|
|
container_name: db
|
|
ports:
|
|
- '3306:3306'
|
|
volumes:
|
|
- ${DATA}/db:/var/lib/mysql
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '500m'
|
|
max-file: '9'
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
|
MYSQL_ADMIN_PASSWORD: 'password'
|
|
# Apache HTTPd
|
|
httpd:
|
|
build: ./dockerfiles/httpd/2.4/debian-9
|
|
image: httpd:2.4-debian
|
|
container_name: httpd
|
|
ports:
|
|
- '80:80'
|
|
volumes:
|
|
- ${DATA}/httpd:/sites-available
|
|
- ${WORKSPACE}:/home/vhosts
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '1g'
|
|
max-file: '10'
|