Skip to content
Open
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
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
# https://hub.docker.com/_/wordpress
FROM wordpress:latest

# Install necessary packages as root
RUN apt-get update && apt-get install -y magic-wormhole

# Change shell for www-data (if needed)
RUN usermod -s /bin/bash www-data
RUN chown www-data:www-data /var/www
USER www-data:www-data

# Ensure proper ownership of web directory
RUN chown -R www-data:www-data /var/www/html

# Switch to the www-data user
USER www-data
10 changes: 6 additions & 4 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ services:
- type: web
name: wordpress
env: docker
plan: standard
plan: starter
region: frankfurt
autoDeploy: false
disk:
name: wordpress
mountPath: /var/www/html
sizeGB: 20
sizeGB: 5
envVars:
- key: WORDPRESS_DB_HOST
fromService:
Expand All @@ -33,12 +34,13 @@ services:
name: mysql-wordpress
repo: https://github.com/render-examples/mysql.git
env: docker
plan: standard
plan: starter
region: frankfurt
autoDeploy: false
disk:
name: mysql-wordpress
mountPath: /var/lib/mysql
sizeGB: 20
sizeGB: 5
envVars:
- key: MYSQL_DATABASE
value: mysql
Expand Down