Add docker-compose.yml
This commit is contained in:
parent
d1da7afb05
commit
2a85c67185
1 changed files with 70 additions and 0 deletions
70
docker-compose.yml
Normal file
70
docker-compose.yml
Normal 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:
|
Loading…
Reference in a new issue