projects

homelab

My self-hosted services

feat: add postgres

daniel daum committed parent d005a62 commit 6ffc867Signed, not verified

SignedGitea couldn't verify the signature.

Showing 2 changed files with 36 additions and 0 deletions.

postgres/.envadded +10 −0
@@ -0,0 +1,10 @@1#/-------------------[DOTENV_PUBLIC_KEY]--------------------/2#/            public-key encryption for .env files          /3#/       [how it works](https://dotenvx.com/encryption)     /4#/----------------------------------------------------------/5DOTENV_PUBLIC_KEY="033732408e64b43a475eca84659ae5c61a53ea393bdd6beaa6be5de9d5ac3a432a"67# .env8POSTGRES_DB=encrypted:BJrBD2lQ6RIG7758v4TB1UTc3smGbplFyEwCcy6mRzqeO+DZ0aGMs53yvC/Fnbx9FXFwgT6yEn5adtfhOXSP8RxWQ7vBLm54noFPquCVu9UB1pCXZula/YhM85rrpngABUelrjTAeNw=9POSTGRES_USER=encrypted:BKn7MrZLioSGSXQO0MJMVAyjAFA+8Bfj5uPvHMV0iacX8xhgT6NWh8LyFQIUrtIGJnrayD1zJYD1rrfBxYQrUAQ5OT5XnaMSPMG+cTCjicXs1oJKqyrUjbtgtNl8Jem8XiNlGwaQ4ZRB7d7u8MaPhg==10POSTGRES_PASSWORD=encrypted:BH4TXn8FyoX0vIzeotVreYmt+Jac5zhho959eIcao0vHMB8v+JEBiXRTFbYV0LUFl/RbZJndCiDxzbydezmxyxv4hX6nK8v0DEOYeDfQpdcLUdH7DI4QpnB8+FUynwXpguyyWMN9Fd2dico6MEUClI1TITxyiOjmzVA6wzgEpAZW9WVYOVkTDXNSW3md
postgres/docker-compose.yamladded +26 −0
@@ -0,0 +1,26 @@1services:2  postgres:3    image: docker.io/library/postgres:18.6@sha256:edb0c08dc33befd0262ab3b5cf1c4f3f8cfd8b09e88c05b45adee29d6761ddb64    container_name: postgres5    restart: unless-stopped6    security_opt:7      - no-new-privileges:true8    ports:9      - "127.0.0.1:5432:5432"10    volumes:11      - postgres-data:/var/lib/postgresql12    networks:13      - holonet14    environment:15      - POSTGRES_DB16      - POSTGRES_USER17      - POSTGRES_PASSWORD1819volumes:20  postgres-data:21    name: postgres-data22    driver: local2324networks:25  holonet:26    name: holonet