Adding nginx-proxy, db services

This commit is contained in:
Mike Holloway 2025-12-07 00:21:22 -05:00
parent ec1ec82518
commit 7795ef9605

View File

@ -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