Created
March 3, 2023 11:23
-
-
Save 6rube/e59ced4b0e277e9d167f0c388087bb7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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.8' | |
services: | |
nginx: | |
image: 'nginxproxy/nginx-proxy:latest' | |
container_name: 'nginx-proxy' | |
volumes: | |
- 'html:/usr/share/nginx/html' | |
- 'dhparam:/etc/nginx/dhparam' | |
- 'vhost:/etc/nginx/vhost.d' | |
- 'certs:/etc/nginx/certs' | |
- 'conf:/etc/nginx/conf.d' | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' | |
restart: 'always' | |
ports: | |
- '80:80' | |
- '443:443' | |
acme: | |
image: 'nginxproxy/acme-companion:latest' | |
container_name: 'nginx-proxy-acme-companion' | |
depends_on: | |
- 'nginx' | |
volumes_from: | |
- 'nginx' | |
volumes: | |
- 'acme:/etc/acme.sh' | |
- '/var/run/docker.sock:/var/run/docker.sock:ro' | |
environment: | |
NGINX_PROXY_CONTAINER: 'nginx-proxy' | |
DEFAULT_EMAIL: '[email protected]' | |
restart: 'always' | |
portainer: | |
image: portainer/portainer-ce:latest | |
restart: always | |
environment: | |
- VIRTUAL_HOST=Your.Domain | |
- VIRTUAL_PORT=9443 | |
- VIRTUAL_PROTO=https | |
# Choose Cert host | |
- LETSENCRYPT_HOST=Your.Domain | |
ports: | |
- 9000:9000 | |
- 8000:8000 | |
- 9443:9443 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- portainer_data:/data | |
- /root/docker/portainer/:/certs | |
command: | |
-H unix:///var/run/docker.sock | |
--ssl | |
--sslcert /certs/portainer.crt | |
--sslkey /certs/portainer.key | |
volumes: | |
html: | |
dhparam: | |
vhost: | |
certs: | |
conf: | |
acme: | |
portainer_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment