This commit is contained in:
Michael RICOIS 2018-03-23 16:51:43 +01:00
parent c6da89460b
commit d0d15c612c

View File

@ -8,10 +8,10 @@ services:
volumes: volumes:
- ${WORKSPACE}:/home/vhosts - ${WORKSPACE}:/home/vhosts
logging: logging:
driver: "json-file" driver: 'json-file'
options: options:
max-size: "1g" max-size: '1g'
max-file: "10" max-file: '10'
# PHP 7.0 FPM # PHP 7.0 FPM
fpm70: fpm70:
build: ./dockerfiles/php-fpm/7.0/debian-9 build: ./dockerfiles/php-fpm/7.0/debian-9
@ -20,47 +20,53 @@ services:
volumes: volumes:
- ${WORKSPACE}:/home/vhosts - ${WORKSPACE}:/home/vhosts
logging: logging:
driver: "json-file" driver: 'json-file'
options: options:
max-size: "1g" max-size: '1g'
max-file: "10" max-file: '10'
# MailCatcher # MailCatcher
mailcatcher: mailcatcher:
build: ./dockerfiles/mailcatcher build: ./dockerfiles/mailcatcher
image: mailcatcher:0.6.5 image: mailcatcher:0.6.5
container_name: mailcatcher container_name: mailcatcher
ports:
- '1080:1080'
logging: logging:
driver: "json-file" driver: 'json-file'
options: options:
max-size: "1g" max-size: '1g'
max-file: "10" max-file: '10'
# MariaDB # MariaDB
db: db:
build: ./dockerfiles/mariadb/10.2/official build: ./dockerfiles/mariadb/10.2/official
image: mariadb:10.2-official image: mariadb:10.2-official
container_name: db container_name: db
ports:
- '3306:3306'
volumes: volumes:
- ${WORKSPACE}/database:/var/lib/mysql - ${WORKSPACE}/container-data/db:/var/lib/mysql
logging: logging:
driver: "json-file" driver: 'json-file'
options: options:
max-size: "500m" max-size: '500m'
max-file: "9" max-file: '9'
environment: environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_ROOT_PASSWORD: 'password'
MARIADB_PASS: password
# Apache HTTPd # Apache HTTPd
httpd: httpd:
build: ./dockerfiles/httpd/2.4/debian-9 build: ./dockerfiles/httpd/2.4/debian-9
image: httpd:2.4-debian image: httpd:2.4-debian
container_name: httpd container_name: httpd
ports:
- '80:80'
volumes: volumes:
- ${WORKSPACE}/container-data/httpd:/etc/apache2/sites-available
- ${WORKSPACE}:/home/vhosts - ${WORKSPACE}:/home/vhosts
logging: logging:
driver: "json-file" driver: 'json-file'
options: options:
max-size: "1g" max-size: '1g'
max-file: "10" max-file: '10'
networks: networks:
default: default: