-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-install.yml
45 lines (44 loc) · 1.4 KB
/
docker-compose-install.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
services:
wordpress_install:
image: wordpress:cli
environment:
WORDPRESS_DB_HOST: ${NAME}-db:3306
WORDPRESS_DB_USER: ${DB_USER}
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
WORDPRESS_DB_NAME: ${DB_NAME}
command: >
/bin/sh -c '
wp core install --path="/var/www/html" --url="https://wp-dev.ucsc" --title="Local Wordpress with HTTPS & LDAP" --admin_user=admin --admin_password=password [email protected];
wp theme activate ucsc-2022;
wp plugin activate ucsc-gutenberg-blocks;
wp plugin activate ucsc-custom-functionality;
wp rewrite structure '/%year%/%monthnum%/%postname%/';
'
volumes:
- ./public/:/var/www/html
networks:
- wpsite
platform: linux/amd64
theme_composer_install:
image: composer/composer
volumes:
- "./public/:/var/www/html"
working_dir: /var/www/html/wp-content/themes/ucsc-2022
command: install
platform: linux/amd64
theme_npm_install:
image: node:16.18.0-alpine3.15
volumes:
- "./public/:/var/www/html"
working_dir: /var/www/html/wp-content/themes/ucsc-2022
command: npm install
platform: linux/amd64
plugin_npm_install:
image: node:16.18.0-alpine3.15
volumes:
- "./public/:/var/www/html"
working_dir: /var/www/html/wp-content/plugins/ucsc-gutenberg-blocks
command: npm install
platform: linux/amd64
networks:
wpsite: null