Created
July 13, 2021 17:45
-
-
Save blackwood821/3f1ab6b4cc7a06e1882f13578512262d to your computer and use it in GitHub Desktop.
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: | |
nginx: | |
image: nginx | |
container_name: nginx | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- "./default.conf:/etc/nginx/conf.d/default.conf" | |
nginx-exporter: | |
image: nginx/nginx-prometheus-exporter:0.9.0 | |
container_name: nginx-exporter | |
command: | |
- -nginx.scrape-uri | |
- http://nginx:80/stub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And here is
./default.conf
: