devcontainer/docker-compose.yml
2018-03-22 12:44:32 +01:00

80 lines
1.4 KiB
YAML

version: '2.1'
services:
# PHP 5.6 FPM
fpm56:
container_name: fpm56
image: php-fpm:5.6-debian
volumes:
- /home/michael/workspace:/home/vhosts
links:
- "db:db"
- "mailcatcher:mailcatcher"
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# PHP 7.0 FPM
fpm70:
container_name: fpm70
image: php-fpm:7.0-debian
volumes:
- /home/michael/workspace:/home/vhosts
links:
- "db:db"
- "mailcatcher:mailcatcher"
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# MailCatcher
mailcatcher:
container_name: mailcatcher
image: mailcatcher:0.6.5
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# MariaDB
db:
container_name: db
image: mariadb:10.2-debian
user: mysql
volumes:
- /home/michael/workspace/database:/var/lib/mysql
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "9"
environment:
MARIADB_PASS: password
# Apache HTTPd
httpd:
container_name: httpd
image: httpd:2.4-debian
volumes:
- /home/michael/workspace:/home/vhosts
links:
- "fpm56:fpm56"
- "fpm70:fpm70"
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