moved secrets around a little

This commit is contained in:
Aster Fialla
2026-02-12 20:32:45 -05:00
parent 0ba4fee9e7
commit fc588480cd
2 changed files with 7 additions and 9 deletions

2
.gitignore vendored
View File

@@ -5,4 +5,4 @@ riderModule.iml
/_ReSharper.Caches/ /_ReSharper.Caches/
.idea .idea
config.yml config.yml
postgres_pwd.txt secrets/

View File

@@ -1,9 +1,4 @@
services: services:
pluralflux:
image: pluralflux
build:
context: .
dockerfile: Dockerfile
postgres: postgres:
image: postgres:latest image: postgres:latest
container_name: pluralflux-postgres container_name: pluralflux-postgres
@@ -12,7 +7,7 @@
secrets: secrets:
- postgres_pwd - postgres_pwd
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql
ports: ports:
- "5432:5432" - "5432:5432"
pgadmin: pgadmin:
@@ -21,7 +16,7 @@
- 5050:80 - 5050:80
environment: environment:
# Required by pgAdmin # Required by pgAdmin
PGADMIN_DEFAULT_EMAIL: pieartsy@pm.me PGADMIN_DEFAULT_EMAIL: /run/secrets/postgres_email
PGADMIN_DEFAULT_PASSWORD: /run/secrets/postgres_pwd PGADMIN_DEFAULT_PASSWORD: /run/secrets/postgres_pwd
# Don't require the user to login # Don't require the user to login
PGADMIN_CONFIG_SERVER_MODE: 'False' PGADMIN_CONFIG_SERVER_MODE: 'False'
@@ -29,10 +24,13 @@
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False' PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
secrets: secrets:
- postgres_pwd - postgres_pwd
- postgres_email
volumes: volumes:
pgdata: pgdata:
secrets: secrets:
postgres_pwd: postgres_pwd:
file: ./postgres_pwd.txt file: secrets/postgres_password.txt
postgres_email:
file: ./postgres-email.txt