-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (40 loc) · 1.06 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
version: '3'
services:
nginx:
image: nginx
ports:
- 8080:80
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./app:/var/www
depends_on:
- php-fpm
- mariadb
php-fpm:
build:
context: ./php
dockerfile: Dockerfile
volumes:
- ./app:/var/www
mariadb:
build:
context: ./mariadb
dockerfile: Dockerfile
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: laraveldb
MYSQL_USER: laraveluser
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
volumes:
- ./mariadb/data:/var/lib/mysql
- ./mariadb/config:/etc/mysql/conf.d
phpmyadmin:
image: phpmyadmin
ports:
- 8081:80
environment:
PMA_PORT: 3306
PMA_HOSTS: mariadb