fix: update docker-compose configuration for ghostfolio service and redis network settings
This commit is contained in:
@@ -9,13 +9,13 @@ services:
|
|||||||
- ALL
|
- ALL
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
env_file:
|
env_file: # using portainer and this is how I pass env vars within portainer
|
||||||
- ../.env
|
- stack.env
|
||||||
ports:
|
ports:
|
||||||
- 3333:3333
|
- 3333:3333
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
# postgres:
|
||||||
condition: service_healthy
|
# condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -23,31 +23,34 @@ services:
|
|||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
networks:
|
||||||
postgres:
|
- homelab
|
||||||
image: docker.io/library/postgres:15-alpine
|
- ghostfolio_net
|
||||||
container_name: gf-postgres
|
# Running separate compose container, 1 postgres for all apps
|
||||||
restart: unless-stopped
|
# postgres:
|
||||||
cap_drop:
|
# image: docker.io/library/postgres:15-alpine
|
||||||
- ALL
|
# container_name: gf-postgres
|
||||||
cap_add:
|
# restart: unless-stopped
|
||||||
- CHOWN
|
# cap_drop:
|
||||||
- DAC_READ_SEARCH
|
# - ALL
|
||||||
- FOWNER
|
# cap_add:
|
||||||
- SETGID
|
# - CHOWN
|
||||||
- SETUID
|
# - DAC_READ_SEARCH
|
||||||
security_opt:
|
# - FOWNER
|
||||||
- no-new-privileges:true
|
# - SETGID
|
||||||
env_file:
|
# - SETUID
|
||||||
- ../.env
|
# security_opt:
|
||||||
healthcheck:
|
# - no-new-privileges:true
|
||||||
test:
|
# env_file:
|
||||||
['CMD-SHELL', 'pg_isready -d "$${POSTGRES_DB}" -U $${POSTGRES_USER}']
|
# - ../.env
|
||||||
interval: 10s
|
# healthcheck:
|
||||||
timeout: 5s
|
# test:
|
||||||
retries: 5
|
# ['CMD-SHELL', 'pg_isready -d "$${POSTGRES_DB}" -U $${POSTGRES_USER}']
|
||||||
volumes:
|
# interval: 10s
|
||||||
- postgres:/var/lib/postgresql/data
|
# timeout: 5s
|
||||||
|
# retries: 5
|
||||||
|
# volumes:
|
||||||
|
# - postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/library/redis:alpine
|
image: docker.io/library/redis:alpine
|
||||||
@@ -59,7 +62,7 @@ services:
|
|||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- stack.env
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
@@ -70,6 +73,11 @@ services:
|
|||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
networks:
|
||||||
|
- ghostfolio_net
|
||||||
|
|
||||||
volumes:
|
networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area..
|
||||||
postgres:
|
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
|
||||||
Reference in New Issue
Block a user