-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.22 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
version: '3.8'
services:
modx_web:
image: caddy:alpine
restart: unless-stopped
env_file: .env
depends_on:
- modx_php
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data:rw
- modx_static_manager:/srv/manager:ro
- modx_assets:/srv/assets:ro
networks:
- http_net
modx_php:
build: build/
restart: unless-stopped
env_file: .env
depends_on:
- modx_mysql
volumes:
- modx_config:/modx/core/config:rw
- modx_packages:/modx/core/packages:rw
- modx_components:/modx/core/components:rw
- modx_assets:/modx/public/assets:rw
- modx_static_manager:/modx/static/manager:rw
networks:
- http_net
- db_net
modx_mysql:
image: 'mariadb:latest'
restart: unless-stopped
env_file: .env
ports:
- "3306:3306"
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 0
MARIADB_RANDOM_ROOT_PASSWORD: 1
volumes:
- 'mariadb_data:/var/lib/mysql:rw'
networks:
- db_net
volumes:
caddy_data:
mariadb_data:
modx_config:
modx_packages:
modx_components:
modx_assets:
modx_static_manager:
networks:
db_net:
http_net: