services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped container_name: npm ports: # These ports are in format : - '80:80' # Public HTTP Port - '443:443' # Public HTTPS Port - '81:81' # Admin Web Port # Add any other Stream port you want to expose # - '21:21' # FTP environment: TZ: "Europe/Berlin" # Postgres parameters: DB_POSTGRES_HOST: 'db' DB_POSTGRES_PORT: '5432' DB_POSTGRES_USER: ${PG_USER:-npm} DB_POSTGRES_PASSWORD: ${PG_PASS} DB_POSTGRES_NAME: 'npm' # Uncomment this if IPv6 is not enabled on your host # DISABLE_IPV6: 'true' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt depends_on: - db db: image: postgres:17 container_name: npm-db environment: POSTGRES_USER: ${PG_USER:-npm} POSTGRES_PASSWORD: ${PG_PASS} POSTGRES_DB: 'npm' volumes: - ./postgresql:/var/lib/postgresql