-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·45 lines (42 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
executable file
·45 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
apache:
image: php:8.2-apache
container_name: apache-webserver-apilaravel
build:
context: .
dockerfile: ./docker/php/Dockerfile
volumes:
- ./app:/var/www/html
- ./docker/apache/apache.conf:/etc/apache2/sites-enabled/000-default.conf
ports:
- "80:80"
- "443:443"
depends_on:
- db
environment:
XDEBUG_MODE: debug
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003
extra_hosts:
host.docker.internal: host-gateway
db:
image: mysql:8.0
container_name: mysql-webserver-apilaravel
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: webserver_database
MYSQL_USER: webserver_user
MYSQL_PASSWORD: webserver_password
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin-webserver-apilaravel
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: rootpassword
ports:
- "8080:80"
depends_on:
- db
volumes:
db_data: