From 52608253b17cb9de3caab8801d5cb60c2e5ddb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 5 Dec 2023 11:32:16 +0100 Subject: [PATCH] postgres: move to separate file --- docker-compose.yml | 14 +------------- services/postgres.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 services/postgres.yml diff --git a/docker-compose.yml b/docker-compose.yml index 32fc232..a37206a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ include: - services/miniflux.yml - services/jelu.yml - services/sonarr.yml + - services/postgres.yml - services/nextcloud.yml @@ -498,19 +499,6 @@ services: profiles: - base - postgres: - container_name: postgres - image: postgres:latest - networks: - public: - ipv4_address: 192.168.240.25 - volumes: - - "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data" - restart: unless-stopped - profiles: - - base - - infra - gitea: container_name: gitea image: ${REGISTRY_URL}/gitea:latest diff --git a/services/postgres.yml b/services/postgres.yml new file mode 100644 index 0000000..63701c3 --- /dev/null +++ b/services/postgres.yml @@ -0,0 +1,14 @@ +--- +services: + postgres: + container_name: postgres + image: postgres:latest + networks: + public: + ipv4_address: 192.168.240.25 + volumes: + - "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data" + restart: unless-stopped + profiles: + - base + - infra \ No newline at end of file