Update Website_Containers/lamp_stack/compose.yaml
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: php:8.4-apache #check the php version you need for your project
|
image: php:8.4-apache #check the php version you need for your project
|
||||||
|
container_name: lamp-web
|
||||||
#ports:
|
#ports:
|
||||||
# - "8086:80" #this line maps your pc port to the container port
|
# - "8086:80" #this line maps your pc port to the container port
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -11,8 +12,9 @@ services:
|
|||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:9.3.0 #check the mysql version you need for your project
|
image: mysql:9.3.0 #check the mysql version you need for your project
|
||||||
|
container_name: lamp-db
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: password #you can change the mysql root password here
|
MYSQL_ROOT_PASSWORD: ${PASSWORD} #you can change the mysql root password here
|
||||||
MYSQL_DATABASE: lamp_db #you can change the database name here
|
MYSQL_DATABASE: lamp_db #you can change the database name here
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/docker/lamp-stack/mysql_data:/var/lib/mysql #this line maps the content of ./mysql_data in your pc to the /var/lib/mysql of the container
|
- /srv/docker/lamp-stack/mysql_data:/var/lib/mysql #this line maps the content of ./mysql_data in your pc to the /var/lib/mysql of the container
|
||||||
@@ -20,6 +22,7 @@ services:
|
|||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: phpmyadmin/phpmyadmin
|
image: phpmyadmin/phpmyadmin
|
||||||
|
container_name: lamp-phpadmin
|
||||||
#ports:
|
#ports:
|
||||||
# - "8087:80" #this line maps your pc port to the container port
|
# - "8087:80" #this line maps your pc port to the container port
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user