Update docker-compose.yml

This commit is contained in:
Kenny Yang authored and GitHub committed 2024-06-13 14:46:35 +08:00
1 parent ac974dd015
commit f187fae7a3
1 file changed
+14
+14
View File
@@ -33,6 +33,8 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args:
PHP_VERSION: "8.2"
container_name: php container_name: php
restart: always restart: always
volumes: volumes:
@@ -40,6 +42,18 @@ services:
networks: networks:
- dev_network - dev_network
php74:
build:
context: .
dockerfile: Dockerfile
args:
PHP_VERSION: "7.4"
container_name: php74
volumes:
- ./html:/var/www/html
networks:
- dev_network
mysql: mysql:
image: mysql:8.0.23 image: mysql:8.0.23
container_name: mysql container_name: mysql