From e08dd5bc7b7971eb3adbd5cd7703f97eefdafd79 Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Sat, 22 Nov 2025 15:04:44 -0500 Subject: [PATCH] fix: update docker-compose configuration for ghostfolio service and redis network settings --- ghostfolio/docker-compose.yml | 72 +++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/ghostfolio/docker-compose.yml b/ghostfolio/docker-compose.yml index e557d93..44a9f1a 100644 --- a/ghostfolio/docker-compose.yml +++ b/ghostfolio/docker-compose.yml @@ -9,13 +9,13 @@ services: - ALL security_opt: - no-new-privileges:true - env_file: - - ../.env + env_file: # using portainer and this is how I pass env vars within portainer + - stack.env ports: - 3333:3333 depends_on: - postgres: - condition: service_healthy + # postgres: + # condition: service_healthy redis: condition: service_healthy healthcheck: @@ -23,31 +23,34 @@ services: interval: 10s timeout: 5s retries: 5 - - postgres: - image: docker.io/library/postgres:15-alpine - container_name: gf-postgres - restart: unless-stopped - cap_drop: - - ALL - cap_add: - - CHOWN - - DAC_READ_SEARCH - - FOWNER - - SETGID - - SETUID - security_opt: - - no-new-privileges:true - env_file: - - ../.env - healthcheck: - test: - ['CMD-SHELL', 'pg_isready -d "$${POSTGRES_DB}" -U $${POSTGRES_USER}'] - interval: 10s - timeout: 5s - retries: 5 - volumes: - - postgres:/var/lib/postgresql/data + networks: + - homelab + - ghostfolio_net + # Running separate compose container, 1 postgres for all apps + # postgres: + # image: docker.io/library/postgres:15-alpine + # container_name: gf-postgres + # restart: unless-stopped + # cap_drop: + # - ALL + # cap_add: + # - CHOWN + # - DAC_READ_SEARCH + # - FOWNER + # - SETGID + # - SETUID + # security_opt: + # - no-new-privileges:true + # env_file: + # - ../.env + # healthcheck: + # test: + # ['CMD-SHELL', 'pg_isready -d "$${POSTGRES_DB}" -U $${POSTGRES_USER}'] + # interval: 10s + # timeout: 5s + # retries: 5 + # volumes: + # - postgres:/var/lib/postgresql/data redis: image: docker.io/library/redis:alpine @@ -59,7 +62,7 @@ services: security_opt: - no-new-privileges:true env_file: - - ../.env + - stack.env command: - /bin/sh - -c @@ -70,6 +73,11 @@ services: interval: 10s timeout: 5s retries: 5 + networks: + - ghostfolio_net -volumes: - postgres: \ No newline at end of file +networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area.. + homelab: # Sub-section, any network name or 'default' to edit default one created + external: true # This option causes compose to join the above network instead of making a _default one + ghostfolio_net: + external: false \ No newline at end of file