webdev/docker-compose.yml

70 lines
No EOL
1.1 KiB
YAML

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: