Created
August 4, 2017 11:55
-
-
Save luxifer/32d96de942b94074bdd6258292e04274 to your computer and use it in GitHub Desktop.
Secured wordpress demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
database: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
wordpress: | |
image: wordpress:4.8-php7.1 | |
environment: | |
WORDPRESS_DB_HOST: mysql | |
WORDPRESS_DB_USER: root | |
WORDPRESS_DB_PASSWORD: password | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_TABLE_PREFIX: "" | |
links: | |
- database:mysql | |
proxy: | |
image: skippy/oauth2_proxy | |
environment: | |
OAUTH2_PROXY_CLIENT_ID: <google client ID> | |
OAUTH2_PROXY_CLIENT_SECRET: <google client secret> | |
OAUTH2_PROXY_COOKIE_SECRET: <cookie secret> # base64_encode(random_bytes(32)) | |
links: | |
- wordpress:backend | |
ports: | |
- "8080:4180" | |
command: ["-upstream", "http://backend/", "--http-address=0.0.0.0:4180", "-email-domain", "<email domain>", "-cookie-secure=false"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment