-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.42 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
54
55
56
57
58
59
60
version: '3.9'
name: wp2joomla
services:
joomla_php8:
build:
context: .
dockerfile: docker/Dockerfile
restart: always
links:
- mysql:mysql
depends_on:
- mysql
ports:
- 80:80
expose:
- 9003
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
JOOMLA_DB_HOST: mysql
JOOMLA_DB_NAME: ${JOOMLA_DB_NAME}
JOOMLA_DB_USER: ${JOOMLA_DB_USER}
JOOMLA_DB_PASSWORD: ${JOOMLA_DB_PASSWORD}
XDEBUG_MODE: develop,debug
XDEBUG_CONFIG: client_host=host.docker.internal start_with_request=yes
volumes:
- ./docker/config/php.ini:/usr/local/etc/php/conf.d/zphp.ini
- ./src:/var/www/html/cli/wp2joomla
- ./plg_system_wp2joomla:/var/www/html/plugins/system/wp2joomla
- joomla_files:/var/www/html
mysql:
image: mysql:5.7
restart: always
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=${JOOMLA_DB_NAME}
- MYSQL_USER=${JOOMLA_DB_USER}
- MYSQL_PASSWORD=${JOOMLA_DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${JOOMLA_DB_PASSWORD}
volumes:
- ./docker/sql:/docker-entrypoint-initdb.d
- wp2joomla_db:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
ports:
- 81:80
environment:
- PMA_HOST=mysql
- PMA_USER=${JOOMLA_DB_USER}
- PMA_PASSWORD=${JOOMLA_DB_PASSWORD}
volumes:
wp2joomla_db:
joomla_files: