Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-03-28 Adds WordPress - old-menu branch - PR 2 of 2 #760

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .templates/wordpress/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
wordpress:
container_name: wordpress
image: wordpress
restart: unless-stopped
environment:
TZ: ${TZ:-Etc/UTC}
WORDPRESS_DB_HOST: wordpress_db
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD:?eg echo WORDPRESS_DB_PASSWORD=userPassword >>~/IOTstack/.env}
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME:-wordpress}
volumes:
- ./volumes/wordpress/html:/var/www/html
ports:
- "8084:80"
hostname: ${WORDPRESS_HOSTNAME:?eg echo WORDPRESS_HOSTNAME=hostname >>~/IOTstack/.env}
networks:
- default
- nextcloud
depends_on:
- wordpress_db

wordpress_db:
container_name: wordpress_db
build: ./.templates/mariadb/.
restart: unless-stopped
environment:
TZ: ${TZ:-Etc/UTC}
MYSQL_ROOT_PASSWORD: ${WORDPRESS_ROOT_PASSWORD:?eg echo WORDPRESS_ROOT_PASSWORD=rootPassword >>~/IOTstack/.env}
MYSQL_USER: ${WORDPRESS_DB_USER:-wordpress}
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD:?eg echo WORDPRESS_DB_PASSWORD=userPassword >>~/IOTstack/.env}
MYSQL_DATABASE: ${WORDPRESS_DB_NAME:-wordpress}
volumes:
- ./volumes/wordpress/db:/config
- ./volumes/wordpress/db_backup:/backup
networks:
- nextcloud
2 changes: 2 additions & 0 deletions menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ declare -A cont_array=(
[homer]="Homer"
[mjpg-streamer]="MJPG Streamer"
[home_assistant]="Home Assistant Container"
[wordpress]="Web content management"
# add yours here
)

Expand Down Expand Up @@ -119,6 +120,7 @@ declare -a keylist=(
"homer"
"mjpg-streamer"
"home_assistant"
"wordpress"
# add yours here
)

Expand Down