From 7795ef9605266d3f1255f63eaedd29277d39e3f7 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sun, 7 Dec 2025 00:21:22 -0500 Subject: [PATCH] Adding nginx-proxy, db services --- templates/docker-compose.yml.j2 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 19119cb..53785d1 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -15,6 +15,34 @@ services: - POSTGRES_HOST=db:5432 - REDIS_HOST=redis - NEXTCLOUD_TRUSTED_DOMAINS="{{ inventory_hostname | default('ansible_undefined_host') }}" + env_file: + - .db.env + networks: + podman: + aliases: + - "nextcloud.local" + + nginx-proxy: + image: nginxproxy/nginx-proxy:latest + ports: + - 8080:80 # change to 80:80 when the shop is ready to go live + - 4443:443 # change to 80:80 when the shop is ready to go live + networks: + podman: + + volumes: + - ~/nginx/certs:/etc/nginx/certs + - ~/nginx/html:/usr/share/nginx/html + - /run/user/{{ getent_passwd[item.name][2] }}/podman/podman.sock:/tmp/docker.sock:ro + + db: + image: postgres:alpine + hostname: db + restart: always + volumes: + - db:/var/lib/postgresql/data:Z + env_file: + - .db.env redis: image: redis:alpine