forked from modxcms/docker-modx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.11 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
version: '3.1'
services:
modx:
image: modx:3.0.4
build:
context: ./apache
dockerfile: Dockerfile
container_name: modx
depends_on:
- mariadb
ports:
- '8000:80'
environment:
MODX_VERSION: 3.0.4
MODX_DB_HOST: mariadb:3306
MODX_DB_PASSWORD: modx
MODX_DB_USER: modx
MODX_DB_NAME: modx
volumes:
# - './html:/var/www/html'
- type: volume
source: modx.html
target: /var/www/html
mariadb:
image: mariadb:11.2
container_name: mariadb
environment:
MARIADB_ROOT_PASSWORD: mysql
MARIADB_DATABASE: modx
MARIADB_USER: modx
MARIADB_PASSWORD: modx
ports:
- '3306:3306'
volumes:
# - './mysql:/var/lib/mysql'
- type: volume
source: mariadb.data
target: /var/lib/mysql
phpmyadmin:
# image: phpmyadmin/phpmyadmin:5.2
image: arm64v8/phpmyadmin:5.2
container_name: phpmyadmin
depends_on:
- mariadb
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- 8001:80
volumes:
modx.html:
mariadb.data: