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

79 lines
1.5 KiB
YAML
Raw Normal View History

2018-03-23 10:53:11 +01:00
version: '2.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:
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:
- '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-23 16:51:43 +01:00
- ${WORKSPACE}/container-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-23 16:51:43 +01:00
MYSQL_ROOT_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-23 16:51:43 +01:00
- ${WORKSPACE}/container-data/httpd:/etc/apache2/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'
2018-03-23 10:53:11 +01:00
networks:
2018-03-23 11:13:31 +01:00
default:
2018-03-23 10:53:11 +01:00
driver: bridge
ipam:
driver: default
config:
2018-03-23 11:13:31 +01:00
- subnet: 172.18.0.0/16
gateway: 172.18.0.1