-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·50 lines (49 loc) · 1.15 KB
/
docker-compose.yml
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
46
47
48
49
version: '3.2'
services:
web:
build:
context: ./
dockerfile: Dockerfile
target: debug
volumes:
- ./:/var/www/html:cached
- ./000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./php.ini:/usr/local/etc/php/php.ini
ports:
- "4000:80"
environment:
XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9001
db:
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: laravel
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
ports:
- "3336:3306"
volumes:
- ./mariadb:/var/lib/mysql
db_secondary:
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: laravel
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
ports:
- "3337:3306"
volumes:
- ./mariadb_secondary:/var/lib/mysql
phpmyadmin:
image: phpmyadmin
environment:
MYSQL_ROOT_PASSWORD: laravel
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
MYSQL_HOST: db_secondary
ports:
- 4001:80
redis:
image: redis:6