devcontainer/docker-compose.yml

76 lines
1.4 KiB
YAML
Raw Normal View History

2018-03-22 18:04:35 +01:00
version: '2.3'
2018-03-22 12:44:32 +01:00
services:
# PHP 5.6 FPM
fpm56:
2018-03-22 18:04:35 +01:00
build: ./dockerfiles/php-fpm/5.6/debian-8
2018-03-22 12:44:32 +01:00
image: php-fpm:5.6-debian
2018-03-22 18:04:35 +01:00
container_name: fpm56
2018-03-22 12:44:32 +01:00
volumes:
2018-03-22 18:04:35 +01:00
- ${WORKSPACE}:/home/vhosts
2018-03-22 12:44:32 +01:00
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# PHP 7.0 FPM
fpm70:
2018-03-22 18:04:35 +01:00
build: ./dockerfiles/php-fpm/7.0/debian-9
2018-03-22 12:44:32 +01:00
image: php-fpm:7.0-debian
2018-03-22 18:04:35 +01:00
container_name: fpm70
2018-03-22 12:44:32 +01:00
volumes:
2018-03-22 18:04:35 +01:00
- ${WORKSPACE}:/home/vhosts
2018-03-22 12:44:32 +01:00
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# MailCatcher
mailcatcher:
2018-03-22 18:04:35 +01:00
build: ./dockerfiles/mailcatcher
2018-03-22 12:44:32 +01:00
image: mailcatcher:0.6.5
2018-03-22 18:04:35 +01:00
container_name: mailcatcher
2018-03-22 12:44:32 +01:00
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
# MariaDB
db:
2018-03-22 18:04:35 +01:00
build: ./dockerfiles/mariadb/10.2/debian
2018-03-22 12:44:32 +01:00
image: mariadb:10.2-debian
2018-03-22 18:04:35 +01:00
container_name: db
2018-03-22 12:44:32 +01:00
user: mysql
volumes:
2018-03-22 18:04:35 +01:00
- ${WORKSPACE}/database:/var/lib/mysql
2018-03-22 12:44:32 +01:00
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "9"
environment:
MARIADB_PASS: password
# Apache HTTPd
httpd:
2018-03-22 18:04:35 +01:00
build: ./dockerfiles/httpd/2.4/debian-9
2018-03-22 12:44:32 +01:00
image: httpd:2.4-debian
2018-03-22 18:04:35 +01:00
container_name: httpd
2018-03-22 12:44:32 +01:00
volumes:
2018-03-22 18:04:35 +01:00
- ${WORKSPACE}:/home/vhosts
2018-03-22 12:44:32 +01:00
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