devcontainer/compose/docker-compose-1.sample.yml
Michael RICOIS 5ada037778 Sample
2018-03-23 10:53:11 +01:00

76 lines
1.4 KiB
YAML

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:
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
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# MariaDB
db:
build: ./dockerfiles/mariadb/10.2/debian
image: mariadb:10.2-debian
container_name: db
user: mysql
volumes:
- ${WORKSPACE}/database:/var/lib/mysql
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "9"
environment:
MARIADB_PASS: password
# Apache HTTPd
httpd:
build: ./dockerfiles/httpd/2.4/debian-9
image: httpd:2.4-debian
container_name: httpd
volumes:
- ${WORKSPACE}:/home/vhosts
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
networks:
front:
ipv4_address: 172.10.0.2
networks:
front:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.10.0.0/16
gateway: 172.10.0.1