devcontainer/compose/docker-compose-2.sample.yml

71 lines
1.4 KiB
YAML
Raw Normal View History

2018-03-27 12:49:28 +02:00
version: '3'
2018-03-23 10:53:11 +01:00
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:
2018-03-23 16:51:43 +01:00
driver: 'json-file'
2018-03-23 10:53:11 +01:00
options:
2018-03-23 16:51:43 +01:00
max-size: '1g'
max-file: '10'
2018-03-23 10:53:11 +01:00
# 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:
2018-03-23 16:51:43 +01:00
driver: 'json-file'
2018-03-23 10:53:11 +01:00
options:
2018-03-23 16:51:43 +01:00
max-size: '1g'
max-file: '10'
2018-03-23 10:53:11 +01:00
# MailCatcher
mailcatcher:
build: ./dockerfiles/mailcatcher
image: mailcatcher:0.6.5
container_name: mailcatcher
2018-03-23 16:51:43 +01:00
ports:
2018-03-27 12:49:28 +02:00
- '1080:1080'
2018-03-23 10:53:11 +01:00
logging:
2018-03-23 16:51:43 +01:00
driver: 'json-file'
2018-03-23 10:53:11 +01:00
options:
2018-03-23 16:51:43 +01:00
max-size: '1g'
max-file: '10'
2018-03-23 10:53:11 +01:00
# MariaDB
db:
build: ./dockerfiles/mariadb/10.2/official
image: mariadb:10.2-official
container_name: db
2018-03-23 16:51:43 +01:00
ports:
- '3306:3306'
2018-03-23 10:53:11 +01:00
volumes:
2018-03-27 12:49:28 +02:00
- ${DATA}/db:/var/lib/mysql
2018-03-23 10:53:11 +01:00
logging:
2018-03-23 16:51:43 +01:00
driver: 'json-file'
2018-03-23 10:53:11 +01:00
options:
2018-03-23 16:51:43 +01:00
max-size: '500m'
max-file: '9'
2018-03-23 10:53:11 +01:00
environment:
2018-03-27 12:49:28 +02:00
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_ADMIN_PASSWORD: 'password'
2018-03-23 10:53:11 +01:00
# Apache HTTPd
httpd:
build: ./dockerfiles/httpd/2.4/debian-9
image: httpd:2.4-debian
container_name: httpd
2018-03-23 16:51:43 +01:00
ports:
- '80:80'
2018-03-23 10:53:11 +01:00
volumes:
2018-03-27 12:49:28 +02:00
- ${DATA}/httpd:/sites-available
2018-03-23 10:53:11 +01:00
- ${WORKSPACE}:/home/vhosts
logging:
2018-03-23 16:51:43 +01:00
driver: 'json-file'
2018-03-23 10:53:11 +01:00
options:
2018-03-23 16:51:43 +01:00
max-size: '1g'
max-file: '10'