{"id":23689132,"url":"https://github.com/skykery/caddy-wordpress","last_synced_at":"2026-01-25T13:01:59.993Z","repository":{"id":268518585,"uuid":"201470748","full_name":"skykery/caddy-wordpress","owner":"skykery","description":"Wordpress using MariaDB and server by caddy webserver docker-compose config.","archived":false,"fork":false,"pushed_at":"2019-08-09T13:21:21.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T05:54:34.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skykery.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-09T13:16:25.000Z","updated_at":"2019-08-09T13:21:23.000Z","dependencies_parsed_at":"2024-12-17T09:27:59.523Z","dependency_job_id":"187578f7-a430-4851-a495-ff52b726457c","html_url":"https://github.com/skykery/caddy-wordpress","commit_stats":null,"previous_names":["skykery/caddy-wordpress"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skykery/caddy-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skykery%2Fcaddy-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skykery%2Fcaddy-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skykery%2Fcaddy-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skykery%2Fcaddy-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skykery","download_url":"https://codeload.github.com/skykery/caddy-wordpress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skykery%2Fcaddy-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T00:35:41.237Z","updated_at":"2026-01-25T13:01:59.970Z","avatar_url":"https://github.com/skykery.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress Caddy Docker Project\n\n## What is this?\nI've made a docker compose config to raise up a wordpress instance using mariadb and served by caddy webserver as a reverse proxy.\n\n### docker-compose.yaml\n```yaml\nversion: \"3.7\"\nservices:\n  caddy:\n    image: abiosoft/caddy:php\n    volumes:\n      - ./config/Caddyfile:/etc/Caddyfile\n      - ./config:/root/.caddy\n    ports:\n      - \"2015:2015\"\n  mariadb:\n    image: 'bitnami/mariadb:10.3'\n    volumes:\n      - 'mariadb_data:/bitnami'\n    environment:\n      - MARIADB_USER=bn_wordpress\n      - MARIADB_DATABASE=bitnami_wordpress\n      - ALLOW_EMPTY_PASSWORD=yes\n  wordpress:\n    image: 'bitnami/wordpress:5'\n    volumes:\n      - 'wordpress_data:/bitnami'\n    depends_on:\n      - mariadb\n    environment:\n      - MARIADB_HOST=mariadb\n      - MARIADB_PORT_NUMBER=3306\n      - WORDPRESS_DATABASE_USER=bn_wordpress\n      - WORDPRESS_DATABASE_NAME=bitnami_wordpress\n      - ALLOW_EMPTY_PASSWORD=yes\nvolumes:\n  mariadb_data:\n    driver: local\n  wordpress_data:\n    driver: local\n```\n\n### Caddyfile\n```\n0.0.0.0:2015 {\n    proxy / wordpress:80 {\n        header_upstream Host {host}\n        header_upstream X-Real-IP {remote}\n        header_upstream X-Forwarded-For {remote}\n        header_upstream X-Forwarded-Port {server_port}\n        header_upstream X-Forwarded-Proto {scheme}\n    }\n}\n```\nThis is a simple caddy config to open a webserver on `0.0.0.0:2015` which defines a proxy from `/` to `wordpress` container on port `80`.\nThe proxy is transparent, all upstream headers are transmitted to wordpress' webserver.\n\n\n### MariaDB\n```yaml\n      - MARIADB_USER=bn_wordpress\n      - MARIADB_DATABASE=bitnami_wordpress\n      - ALLOW_EMPTY_PASSWORD=yes\n```\nThose are default options from bitnami's [MariaDB](https://hub.docker.com/r/bitnami/mariadb). You can put your preferred credentials.\n\n### Wordpress\n```yaml\n      - MARIADB_HOST=mariadb\n      - MARIADB_PORT_NUMBER=3306\n      - WORDPRESS_DATABASE_USER=bn_wordpress\n      - WORDPRESS_DATABASE_NAME=bitnami_wordpress\n      - ALLOW_EMPTY_PASSWORD=yes\n```\nThose are default options from bitnami's [Wordpress](https://hub.docker.com/r/bitnami/wordpress. You can put your preferred credentials here too.\n\n### Persistence\nFor your data to persist on MariaDB or Wordpress containers, define a volume for each one like in bellow example.\n```yaml\nservices:\n  mariadb:\n  ...\n    volumes:\n      - /path/to/mariadb-persistence:/bitnami\n  ...\n  wordpress:\n  ...\n    volumes:\n      - /path/to/wordpress-persistence:/bitnami\n  ...\n```\nAlso, check this link [Wordpress Docker Hub](https://hub.docker.com/r/bitnami/wordpress#persisting-your-application).\n\n\u003e I've already done this for you.\n\n## Environment variables for wordpress\nYou can find all variables on [Wordpress Environment Variable](https://hub.docker.com/r/bitnami/wordpress#environment-variables).\nI've made a copy here with the essential ones if you still don't want to click it.\n\n```\n# User and Site configuration\nWORDPRESS_USERNAME: WordPress application username. Default: user\nWORDPRESS_PASSWORD: WordPress application password. Default: bitnami\nWORDPRESS_EMAIL: WordPress application email. Default: user@example.com\nWORDPRESS_FIRST_NAME: WordPress user first name. Default: FirstName\nWORDPRESS_LAST_NAME: WordPress user last name. Default: LastName\nWORDPRESS_BLOG_NAME: WordPress blog name. Default: User's blog\nWORDPRESS_SCHEME: Scheme to generate application URLs. Default: http\nWORDPRESS_HTACCESS_OVERRIDE_NONE: Set the Apache AllowOverride variable to None. All the default directives will be loaded from /opt/bitnami/wordpress/wordpress-htaccess.conf. Default: yes.\n\n# Use an existing database\nMARIADB_HOST: Hostname for MariaDB server. Default: mariadb\nMARIADB_PORT_NUMBER: Port used by MariaDB server. Default: 3306\nWORDPRESS_DATABASE_NAME: Database name that WordPress will use to connect with the database. Default: bitnami_wordpress\nWORDPRESS_TABLE_PREFIX: Table prefix to use in WordPress. Default: wp_\nWORDPRESS_DATABASE_USER: Database user that WordPress will use to connect with the database. Default: bn_wordpress\nWORDPRESS_DATABASE_PASSWORD: Database password that WordPress will use to connect with the database. No defaults.\nWORDPRESS_SKIP_INSTALL: Force the container to not execute the WordPress installation wizard. This is necessary in case you use a database that already has WordPress data. Default: no\nALLOW_EMPTY_PASSWORD: It can be used to allow blank passwords. Default: no\n```\n\n# Final note\n\u003e HAVE FUN!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskykery%2Fcaddy-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskykery%2Fcaddy-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskykery%2Fcaddy-wordpress/lists"}