mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-06-23 04:10:19 +00:00
d0939e97e6
This commit add the configuration files and settings for Docker Compose and the Unbound DNS resolver. The changes include updating services, container names, images, restart policies, networks, environment variables, volumes, ports, and security options. The configurations for services like Nextcloud, NTP, Pi-hole, Unbound DNS resolver, Portainer, Postgres, PostgreSQL, Uptime Kuma, and WireGuard VPN server have been optimized for privacy, security, and performance. Additionally, the "no-new-privileges:true" setting has been added to prevent acquiring new privileges. Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
18 lines
442 B
YAML
18 lines
442 B
YAML
services:
|
|
postgres:
|
|
container_name: postgres
|
|
image: postgres:16.1-alpine
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- ~/docker-volumes/postgres-data:/var/lib/postgresql/data
|
|
security_opt:
|
|
- no-new-privileges:true
|