2023-02-13 18:02:17 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app_proxy:
|
|
|
|
environment:
|
|
|
|
APP_HOST: ghostfolio_server_1
|
|
|
|
APP_PORT: 3334
|
|
|
|
|
|
|
|
server:
|
2024-11-10 10:59:19 +00:00
|
|
|
image: ghostfolio/ghostfolio:2.122.0@sha256:b2a4e21a1dcd19e54b70e33d19bb845c3058f740f0f54c2f9dbd5dc8927328db
|
2024-06-03 00:15:47 +00:00
|
|
|
init: true
|
2023-02-13 18:02:17 +00:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
NODE_ENV: production
|
|
|
|
HOST: 0.0.0.0
|
|
|
|
PORT: 3334
|
|
|
|
ACCESS_TOKEN_SALT: $APP_GHOSTFOLIO_ACCESS_TOKEN_SALT
|
|
|
|
DATABASE_URL: postgresql://${APP_GHOSTFOLIO_DB_USERNAME}:${APP_GHOSTFOLIO_DB_PASSWORD}@ghostfolio_postgres_1:5432/${APP_GHOSTFOLIO_DB_DATABASE_NAME}?sslmode=prefer
|
|
|
|
JWT_SECRET_KEY: ${APP_SEED}
|
|
|
|
POSTGRES_DB: ${APP_GHOSTFOLIO_DB_DATABASE_NAME}
|
|
|
|
POSTGRES_USER: ${APP_GHOSTFOLIO_DB_USERNAME}
|
|
|
|
POSTGRES_PASSWORD: ${APP_GHOSTFOLIO_DB_PASSWORD}
|
|
|
|
REDIS_HOST: ghostfolio_redis_1
|
|
|
|
REDIS_PASSWORD: ${APP_GHOSTFOLIO_REDIS_PASSWORD}
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:14-bullseye@sha256:c2a30d08a6f9e6c365595fd086c9e0436064c52425f15f72379ecf0807bac518
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
user: "1000:1000"
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: ${APP_GHOSTFOLIO_DB_USERNAME}
|
|
|
|
POSTGRES_PASSWORD: ${APP_GHOSTFOLIO_DB_PASSWORD}
|
|
|
|
POSTGRES_DB: ${APP_GHOSTFOLIO_DB_DATABASE_NAME}
|
|
|
|
PGDATA: /var/lib/postgresql/data
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6.2-bullseye@sha256:5cdb2ac6f780e1d250787f4a887c1ed1166e3389757189ea913059409acc6f7c
|
|
|
|
restart: on-failure
|
|
|
|
user: "1000:1000"
|
|
|
|
command: >
|
|
|
|
--requirepass ${APP_GHOSTFOLIO_REDIS_PASSWORD}
|
|
|
|
volumes:
|
2024-07-31 01:00:47 +00:00
|
|
|
- ${APP_DATA_DIR}/data/redis:/data
|