This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
84 lines (80 loc) · 2.64 KB
/
docker-compose.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.9"
networks:
caesar_supervisor:
external: true
name: caesar_supervisor
caesar_site:
external: true
name: caesar_site_${SLUG}
services:
# ---------------
# MariaDB for the site install
# - THe Database
# ---------------
db:
image: yobasystems/alpine-mariadb
container_name: caesar-${SLUG}-db
volumes:
- ~/.caesar/db/${SLUG}:/var/lib/mysql
restart: always
networks:
- caesar_supervisor
- caesar_site
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: wp
# ---------------
# WordPress Container
# - WP Core
# ---------------
wordpress:
image: nextpress/caesar-wordpress:latest
container_name: caesar-${SLUG}-wordpress
depends_on:
- caesar-${SLUG}-db
- caesar-${SLUG}-cert
networks:
- caesar_supervisor
- caesar_site
volumes:
- $CWD_PATH/wp:/var/www/html
- $LIB_PATH/mu-plugins/autoloader.php:/var/www/html/wp-content/mu-plugins/autoloader.php:ro
- $LIB_PATH/mu-plugins/info.php:/var/www/html/wp-content/mu-plugins/info.php:ro
- $LIB_PATH/scripts/container:/scripts
# - $LIB_PATH/htaccess/.htaccess-single:/var/www/html/.htaccess-single
# - $LIB_PATH/htaccess/.htaccess-subdir:/var/www/html/.htaccess-subdir
# - $LIB_PATH/htaccess/.htaccess-subdomain:/var/www/html/.htaccess-subdomain
- $CWD_PATH/wp-content/plugins:/var/www/html/wp-content/plugins
- $CWD_PATH/wp-content/themes:/var/www/html/wp-content/themes
- $CWD_PATH/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins/files
- $CWD_PATH/logs/xdebug:/logs/xdebug
# Running Marker
# Out Products
- $CWD_PATH/wp-ultimo:/var/www/html/wp-content/plugins/wp-ultimo
# - $CWD_PATH/wp-admin-pages-pro:/var/www/html/wp-content/plugins/wp-admin-pages-pro
# - $CWD_PATH/material-wp:/var/www/html/wp-content/plugins/material-wp
# - $CWD_PATH/pro-theme:/var/www/html/wp-content/plugins/pro-theme
restart: always
environment:
WORDPRESS_DB_HOST: caesar-${SLUG}-db
WORDPRESS_DB_USER: wp
WORDPRESS_DB_PASSWORD: wp
WORDPRESS_DB_NAME: wp
VIRTUAL_HOST: ${DOMAIN_NAME},${ADDITIONAL_DOMAIN_NAMES},${MAPPED_DOMAIN_NAMES}
VIRTUAL_PORT: 80
# ---------------
# Cert Generator
# - Generates SSL certs.
# ---------------
mkcert:
image: nextpress/caesar-mkcert:latest
container_name: caesar-${SLUG}-cert
networks:
- caesar_supervisor
- caesar_site
environment:
DOMAIN: ${DOMAIN_NAME},${ADDITIONAL_DOMAIN_NAMES},${MAPPED_DOMAIN_NAMES}
volumes:
- ~/.caesar/certs:/certs