Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLTN committed Jan 29, 2019
1 parent f481e50 commit 50682db
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 48 deletions.
3 changes: 0 additions & 3 deletions examples/custom_config/Dockerfile

This file was deleted.

26 changes: 17 additions & 9 deletions examples/custom_config/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
https-portal:
build: ./
ports:
- 80:80
- 443:443
environment:
# Redirect my.example.com to https:://letsencrypt.org
# The upsteams will be available as <%= domain.upstream %> in Nginx config
DOMAINS: 'my.example.domain -> https://letsencrypt.org, another.example.domain -> https://another.upstream'
version: '3'

services:
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
environment:
# Redirect my.example.com to https:://letsencrypt.org
# The upsteams will be available as <%= domain.upstream %> in Nginx config
DOMAINS: 'example.com -> https://letsencrypt.org'
STAGE: local
volumes:
- ./nginx-conf/example.com.conf.erb:/var/lib/nginx-conf/example.com.conf.erb:ro
- ./nginx-conf/example.com.ssl.conf.erb:/var/lib/nginx-conf/example.com.ssl.conf.erb:ro

21 changes: 11 additions & 10 deletions examples/minimal/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
https-portal:
image: steveltn/https-portal
# You can build from source code rather than use the prebuilt image from Docker Hub.
# build: ../..
ports:
- 80:80
- 443:443
environment:
DOMAINS: 'example.com'
PRODUCTION: 'true'
version: '3'

services:
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
environment:
DOMAINS: 'example.com'
STAGE: local
53 changes: 27 additions & 26 deletions examples/wordpress/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
https-portal:
image: steveltn/https-portal
# You can build from source code rather than use the prebuilt image from Docker Hub.
# build: ../..
ports:
- 80:80
- 443:443
links:
- wordpress
# Restart https-portal on failure or after Docker host restart.
restart: always
environment:
# Forward wordpress.example.com to the WordPress container.
# You can set up multiple domains at once.
DOMAINS: 'wordpress.example.com -> http://wordpress'
version: '3'

# Using staging server by default, for there is a rate limit on production.
# Uncomment to use Let's Encrypt production server.
# PRODUCTION: 'true'
services:
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
links:
- wordpress
# Restart https-portal on failure or after Docker host restart.
restart: always
environment:
# Forward wordpress.example.com to the WordPress container.
# You can set up multiple domains at once.
DOMAINS: 'example.com -> http://wordpress'
STAGE: local
# Using staging server by default, for there is a rate limit on production.
# Uncomment to use Let's Encrypt production server.
# STAGE: production

wordpress:
image: wordpress
links:
- db:mysql
wordpress:
image: wordpress
links:
- db:mysql

db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: '<a secure password>'
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: '<a secure password>'

0 comments on commit 50682db

Please sign in to comment.