From bd172e19f1cd78541775a6556e29e0ca5ec0a0a1 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sat, 24 Oct 2020 20:58:30 +0200 Subject: [PATCH] Tidy up postgres compose --- compose.postgres.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/compose.postgres.yml b/compose.postgres.yml index d47efab..cbd0da7 100644 --- a/compose.postgres.yml +++ b/compose.postgres.yml @@ -2,20 +2,7 @@ version: '3.8' services: - db: - image: "postgres:9.6.5" - volumes: - - "db:/var/lib/postgresql/data" - networks: - - internal - environment: - POSTGRES_USER: selfoss - POSTGRES_PASSWORD_FILE: /run/secrets/db_password - POSTGRES_DB: selfoss - secrets: - - db_password - - selfoss: + app: networks: - internal depends_on: @@ -28,8 +15,21 @@ services: - SELFOSS_DB_USERNAME=selfoss - SELFOSS_DB_PASSWORD_FILE=/run/secrets/db_password -volumes: db: + image: "postgres:9.6.5" + volumes: + - "postgres:/var/lib/postgresql/data" + networks: + - internal + environment: + POSTGRES_USER: selfoss + POSTGRES_PASSWORD_FILE: /run/secrets/db_password + POSTGRES_DB: selfoss + secrets: + - db_password + +volumes: + postgres: secrets: db_password: