Skip to content

Instantly share code, notes, and snippets.

@serainville
Last active April 25, 2023 12:57
Show Gist options
  • Save serainville/377eaa11f54aef0d38d1adebf5160550 to your computer and use it in GitHub Desktop.
Save serainville/377eaa11f54aef0d38d1adebf5160550 to your computer and use it in GitHub Desktop.
FROM wordpress
# Set environment variables used by the Wordpress image
# DB_USER and DB_PASSWORD are included as an example. However,
# these should be removed and set during docker run.
ENV WORDPRESS_DB_HOST=127.0.0.1 \
WORDPRESS_DB_USER=wpuser \
WORDPRESS_DB_PASSWORD=super-secret-password \
WORDPRESS_DB_NAME=wpsite \
WORDPRESS_TABLE_PREFIX=wp_
COPY plugins/ /var/www/html/wp-content/plugins
COPY themes/ /var/www/html/wp-content/themes
COPY uploads/ /var/www/html/wp-content/uploads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment