File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ wordpress :
2
+ container_name : wordpress
3
+ image : wordpress
4
+ restart : unless-stopped
5
+ environment :
6
+ TZ : ${TZ:-Etc/UTC}
7
+ WORDPRESS_DB_HOST : wordpress_db
8
+ WORDPRESS_DB_USER : ${WORDPRESS_DB_USER:-wordpress}
9
+ WORDPRESS_DB_PASSWORD : ${WORDPRESS_DB_PASSWORD:?eg echo WORDPRESS_DB_PASSWORD=userPassword >>~/IOTstack/.env}
10
+ WORDPRESS_DB_NAME : ${WORDPRESS_DB_NAME:-wordpress}
11
+ volumes :
12
+ - ./volumes/wordpress/html:/var/www/html
13
+ ports :
14
+ - " 8084:80"
15
+ hostname : ${WORDPRESS_HOSTNAME:?eg echo WORDPRESS_HOSTNAME=hostname >>~/IOTstack/.env}
16
+ networks :
17
+ - default
18
+ - nextcloud
19
+ depends_on :
20
+ - wordpress_db
21
+
22
+ wordpress_db :
23
+ container_name : wordpress_db
24
+ build : ./.templates/mariadb/.
25
+ restart : unless-stopped
26
+ environment :
27
+ TZ : ${TZ:-Etc/UTC}
28
+ MYSQL_ROOT_PASSWORD : ${WORDPRESS_ROOT_PASSWORD:?eg echo WORDPRESS_ROOT_PASSWORD=rootPassword >>~/IOTstack/.env}
29
+ MYSQL_USER : ${WORDPRESS_DB_USER:-wordpress}
30
+ MYSQL_PASSWORD : ${WORDPRESS_DB_PASSWORD:?eg echo WORDPRESS_DB_PASSWORD=userPassword >>~/IOTstack/.env}
31
+ MYSQL_DATABASE : ${WORDPRESS_DB_NAME:-wordpress}
32
+ volumes :
33
+ - ./volumes/wordpress/db:/config
34
+ - ./volumes/wordpress/db_backup:/backup
35
+ networks :
36
+ - nextcloud
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ declare -A cont_array=(
68
68
[homer]=" Homer"
69
69
[mjpg-streamer]=" MJPG Streamer"
70
70
[home_assistant]=" Home Assistant Container"
71
+ [wordpress]=" Web content management"
71
72
# add yours here
72
73
)
73
74
@@ -119,6 +120,7 @@ declare -a keylist=(
119
120
" homer"
120
121
" mjpg-streamer"
121
122
" home_assistant"
123
+ " wordpress"
122
124
# add yours here
123
125
)
124
126
You can’t perform that action at this time.
0 commit comments