Skip to content

Commit 022c51e

Browse files
committed
master - update for nginx
1 parent 2bdccd3 commit 022c51e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.env.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
#images versions to use
2+
NGINX_VERSION=latest
3+
PORTAINER_VERSION=latest
4+
15
#domain or subdomain where you want to access portainer
2-
DOMAIN_HOST=portainer.local
6+
#self signed host should be added only local
7+
DOMAIN_HOST=portainer.dev.local
8+
SELF_SIGNED_HOST=dev.local
39

410
#email where you should receive lets encrypt renewal failures
511
DOMAIN_EMAIL=email@email.com

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
22
portainer-nginx:
33
container_name: portainer-nginx
4+
image: nginx:${NGINX_VERSION}
45
restart: unless-stopped
5-
image: nginx:latest
66
volumes:
77
- ./docker/nginx/${VHOST_FILE}:/etc/nginx/conf.d/custom.conf
88
ports:
@@ -11,6 +11,7 @@ services:
1111
- portainer-portainer
1212
environment:
1313
VIRTUAL_HOST: ${DOMAIN_HOST}
14+
SELF_SIGNED_HOST: ${SELF_SIGNED_HOST}
1415
VIRTUAL_PORT: 80
1516
LETSENCRYPT_HOST: ${DOMAIN_HOST}
1617
LETSENCRYPT_EMAIL: ${DOMAIN_EMAIL}
@@ -20,7 +21,7 @@ services:
2021

2122
portainer-portainer:
2223
container_name: portainer-portainer
23-
image: portainer/portainer-ce:latest
24+
image: portainer/portainer-ce:${PORTAINER_VERSION}
2425
restart: unless-stopped
2526
volumes:
2627
- ./data:/data

0 commit comments

Comments
 (0)