-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (67 loc) · 1.94 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
61
62
63
64
65
66
67
68
69
# docker-modx-revolution An auto-updating dockerfile to run ModX Revolution CMS
# Copyright (C) 2021 Jan Giesenberg <749@github.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
version: '3'
services:
modx_web:
image: caddy:2
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:
image: g749/modx-revolution:2
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:10'
restart: unless-stopped
env_file: .env
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: false
MARIADB_RANDOM_ROOT_PASSWORD: true
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: