Skip to content

Commit 55c6140

Browse files
committedDec 13, 2018
Added HTTPS-Portal
1 parent b489b48 commit 55c6140

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed
 

‎docker-compose.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ services:
2222
# from our webserver.
2323
#
2424
php:
25+
image: wordpress:5.0.0-fpm
2526
depends_on:
2627
- db
27-
image: wordpress:5.0.0-fpm
2828
restart: always
2929
volumes:
3030
#
@@ -42,9 +42,9 @@ services:
4242
WORDPRESS_DB_PASSWORD: wordpress
4343

4444
web:
45+
image: nginx
4546
depends_on:
4647
- php
47-
image: nginx
4848
restart: always
4949
volumes:
5050
#
@@ -60,8 +60,28 @@ services:
6060
# rotated on the parent system.
6161
#
6262
- ./logs:/var/log/nginx
63-
ports:
64-
- 8080:80
6563

6664

65+
https-portal:
66+
image: steveltn/https-portal:1
67+
depends_on:
68+
- web
69+
ports:
70+
- 80:80
71+
- 443:443
72+
restart: always
73+
#
74+
# Save our SSL certs between runs so they aren't regenerated on every single run.
75+
#
76+
volumes:
77+
- ./ssl_certs:/var/lib/https-portal
78+
environment:
79+
DOMAINS: 'localhost -> http://web:80 #local'
80+
#DOMAINS: 'YOUR_FQDN -> http://web:80 #staging' # Uncomment when you want to test a staging cert.
81+
#DOMAINS: 'YOUR_FQDN -> http://web:80 #production' # Uncomment when you are ready for production.
82+
#
83+
# Allow larger files to be uploaded
84+
#
85+
CLIENT_MAX_BODY_SIZE: 64M
86+
6787

0 commit comments

Comments
 (0)