From 8f7ca1f4db176349ea4fd27f10d4671958612d06 Mon Sep 17 00:00:00 2001 From: Muhammed Hussein Karimi Date: Mon, 8 Nov 2021 21:06:58 +0330 Subject: [PATCH] I forgot to commit this part :) --- ansible/roles/uptime-kuma/templates/docker-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/uptime-kuma/templates/docker-compose.yml b/ansible/roles/uptime-kuma/templates/docker-compose.yml index f87afc28..7af4c1cc 100644 --- a/ansible/roles/uptime-kuma/templates/docker-compose.yml +++ b/ansible/roles/uptime-kuma/templates/docker-compose.yml @@ -2,6 +2,8 @@ version: '3.3' services: uptime-kuma: restart: always + networks: + - uptime-kuma expose: - 3001 volumes: @@ -10,6 +12,11 @@ services: image: 'louislam/uptime-kuma:{{kuma_image_version}}-{{kuma_image_os}}' nginx: + ports: + - 443:443 + - 80:80 + networks: + - uptime-kuma depends_on: - uptime-kuma restart: always @@ -17,3 +24,6 @@ services: volumes: - '/compose/volumes/nginx/:/etc/nginx/' - '/compose/volumes/nginx/log/{{ kuma_domain }}:/var/log/nginx/{{ kuma_domain }}/' + +networks: + uptime-kuma: