-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.19 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.1"
services:
www:
build:
context: .
dockerfile: Dockerfile
args:
FILE_UID: ${FILE_UID}
FILE_GID: ${FILE_GID}
ports:
- "${WWW_PORT}:80"
volumes:
- ./docker/apache2/conf_local:/etc/apache2/sites-available
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./application:/var/www/html/
links:
- db
networks:
- default
db:
image: mysql:8.0.0
ports:
- "${MYSQL_PORT}:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./docker/dump:/docker-entrypoint-initdb.d
# - ./docker/conf:/etc/mysql/conf.d
- ./docker/mysql_conf/my.cnf:/etc/mysql/my.cnf
- ./docker/mysql:/var/lib/mysql:rw,delegated
networks:
- default
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- ${PHPMYADMIN_PORT}:80
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}