Add docker-compose.yml

This commit is contained in:
Martijn de Boer 2024-08-12 17:15:54 +02:00
parent d1da7afb05
commit 2a85c67185

70
docker-compose.yml Normal file
View file

@ -0,0 +1,70 @@
version: '3.8'
services:
apache:
build:
context: ./apache
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- ./apache/vhosts:/etc/apache2/sites-enabled
- ./projects:/var/www
- ./ssl:/etc/ssl/private
networks:
- dev_network
php74:
build:
context: ./php
dockerfile: Dockerfile-7.4
volumes:
- ./projects:/var/www
networks:
- dev_network
php81:
build:
context: ./php
dockerfile: Dockerfile-8.1
volumes:
- ./projects:/var/www
networks:
- dev_network
php83:
build:
context: ./php
dockerfile: Dockerfile-8.3
volumes:
- ./projects:/var/www
networks:
- dev_network
php84:
build:
context: ./php
dockerfile: Dockerfile-8.4
volumes:
- ./projects:/var/www
networks:
- dev_network
build_tools:
build:
context: ./build_tools
dockerfile: Dockerfile
volumes:
- ./projects:/var/www
ports:
- "2222:22"
networks:
- dev_network
networks:
dev_network:
driver: bridge
volumes:
projects: