[Look for a tester] ansible role added
#662
Open
mhkarimi1383 wants to merge 18 commits from mhkarimi1383/master
into master
pull from: mhkarimi1383/master
merge into: topaLE:master
topaLE:1.6.X
topaLE:1.7.X
topaLE:1.9.X
topaLE:Mikhail5555/feature/remote-header-auth
topaLE:Nuckerr/master
topaLE:Saibamen/fix_871
topaLE:WillianRod/feat/add-favicon-badges
topaLE:andreasbrett/logging
topaLE:andreasbrett/securepush
topaLE:bertyhell/bugfix/heartbeat-bar-animation
topaLE:bertyhell/feature/monitor-checks
topaLE:bertyhell/feature/translations-extraction-script
topaLE:cert-notification
topaLE:chakflying/settings-redesign
topaLE:debian-docker
topaLE:deefdragon/Template-Engine
topaLE:deefdragon/notif-tests
topaLE:e2e-test
topaLE:fdcastel/push-api-tags
topaLE:free-disk-space
topaLE:ivanbratovic/http-basicauth
topaLE:ivanbratovic/improve-translatables
topaLE:k8s-unofficial
topaLE:lucasra1/overall_status
topaLE:master
topaLE:mrphuongbn/master
topaLE:no-need-build
topaLE:philippdormann/feature/release-management
topaLE:proffalken/feature/680_add_labels_to_prometheus_metrics
topaLE:proffalken/feature/auto_build_and_release
topaLE:rebasesoftware/feature/request-with-http-proxy
topaLE:restructure-status-page
topaLE:sqlite-upgrade-prebuilt
topaLE:tarun7singh/master
topaLE:thomasleveil/feature/565-duplicate-monitor
topaLE:thomasleveil/ux/add-group-at-the-top
Reviewers
Request review
Labels
Something isn't working dependencies
Pull requests that update a dependency file discussion doc
Improvements or additions to documentation duplicate
This issue or pull request already exists feature-request
New feature or request good first issue
Good for newcomers hacktoberfest hacktoberfest-accepted help help wanted
Extra attention is needed High
High Priority impossible invalid
This doesn't seem right investigating k8s Low
Low Priority Medium
Medium Priority News prerelease bug question
Further information is requested resolved Unknown wontfix
This will not be worked on
Apply labels
Clear labels
bug
Something isn't working dependencies
Pull requests that update a dependency file discussion doc
Improvements or additions to documentation duplicate
This issue or pull request already exists feature-request
New feature or request good first issue
Good for newcomers hacktoberfest hacktoberfest-accepted help help wanted
Extra attention is needed High
High Priority impossible invalid
This doesn't seem right investigating k8s Low
Low Priority Medium
Medium Priority News prerelease bug question
Further information is requested resolved Unknown wontfix
This will not be worked on
No Label
bug
dependencies
discussion
doc
duplicate
feature-request
good first issue
hacktoberfest
hacktoberfest-accepted
help
help wanted
High
impossible
invalid
investigating
k8s
Low
Medium
News
prerelease bug
question
resolved
Unknown
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This pull request currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch 'mhkarimi1383/master'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
using ansible you can automate installation process and make it cleaner and faster
this playbook will install docker
then install uptime kuma using docker
and install and configure nginx with ssl
Shouldn't this use the official Docker installation method instead of
docker.io
? The official package isdocker-ce
What is this used for?
This should check first if
docker-compose
is pre-installed.Replace this with port binding for
80:80
443:443
Replace with
nginx:stable-alpine
You can generate initial self-signed certs using Ansible Openssl module:
Ex:
Replace with
:1-debian
I would suggest that it should be kept as an unofficial way.
Reasons:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#project-styles
I tried to make it feature prof it's like kubernetes files
And I will try to keep this thing up to date
Any progress You will accept it or not?
It could be accept with following constraints:
Similar to Kubernetes: https://github.com/louislam/uptime-kuma/tree/k8s-unofficial/kubernetes
Thanks
I think should wait for another user to approve it.
This should point to
louislam/uptime-kuma:1
, which is the debian release.Starting with docker-compose v2, it's no installable via PIP anymore. Compose v2 was completely rewritten in Go, and it's now distributed as a binary file: https://github.com/docker/compose/releases
I have made some changes to make things cleaner and better you can see commits
when this pull request accepted I will add another playbook that installs uptime kuma inside Kubernetes using files from Kubernetes directory in repo
I should still wait?
An extra tester is still needed.
docker-compose 2.0.1 is not installable via PIP. They migrated from Python to Golang for v2.x.x
This shouldn't be using HOST network. Use port-binding to port 80 and 443
Why is NGINX by itself on a separate Docker-Compose file?
The current NGINX is only reverse-proxying Uptime-Kuma, so they should be both on the same file that way you don't have to manage multiple Docker Networks.
This should be:
Since the service gets a hostname assigned by Docker Network.
Suggest creating a folder:
/var/log/nginx/uptime-kuma
Which will contain:
That way you have less custom stuff in the nginx.conf
Still valid comment
There's not need to use
ports
here, only NGINX should be binding ports to the host. Instead useexpose
, which only exposes the port to the Docker network.This whole compose file should be merge with the NGINX one. No need to run 2 compose instances if NGINX is only managing traffic for
uptime-kuma
@louislam @mhkarimi1383 Added comment.
@mhkarimi1383
Example docker-compose.yml
I will add your suggestions...
thanks
@gaby @louislam You suggestions Are applied with some improvements
@gaby To see details about what I done for docker installation checkout here https://github.com/geerlingguy/ansible-role-docker#use-with-ansible-and-docker-python-library
Reviewers