-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·53 lines (53 loc) · 1.45 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
50
51
52
53
version: '3.8'
networks:
mynet:
services:
php:
build:
context: ./
dockerfile: ./docker/Dockerfile-php82
restart: always
#image: brunobmorais/php7.4-apache
volumes:
- ./:/var/www/html
- ./docker/config/apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./docker/config/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
ports:
- "80:80"
networks:
- mynet
depends_on:
- mysql
extra_hosts:
- "host.docker.internal:host-gateway"
mysql:
image: mysql:latest
command:
--default-authentication-plugin=mysql_native_password
--sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
restart: always
volumes:
- ./docker/volumes/mysql/database:/var/lib/mysql
- ./docker/config/mysql/dump/database.sql:/docker-entrypoint-initdb.d/dump.sql
ports:
- "3306:3306"
networks:
- mynet
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: user
phpmyadmin:
image: phpmyadmin:latest
environment:
PMA_HOST: mysql
restart: always
ports:
- 8080:80
networks:
- mynet
volumes:
- ./docker/config/phpmyadmin/uploads.ini:/usr/local/etc/php/conf.d/php-phpmyadmin.ini
depends_on:
- mysql