From 2a85c67185e2d24ea9e8d0b5d615f8fdda78f5f5 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 12 Aug 2024 17:15:54 +0200 Subject: [PATCH] Add docker-compose.yml --- docker-compose.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..864bbbf --- /dev/null +++ b/docker-compose.yml @@ -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: \ No newline at end of file