2021-10-30 12:54:14 -04:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
2021-12-21 20:22:58 +01:00
|
|
|
ghostfolio:
|
|
|
|
build: ../
|
|
|
|
env_file:
|
|
|
|
- ../.env
|
|
|
|
environment:
|
2022-06-04 10:02:38 +02:00
|
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=prefer
|
2022-09-15 17:20:03 +02:00
|
|
|
NODE_ENV: production
|
2021-12-21 20:22:58 +01:00
|
|
|
REDIS_HOST: 'redis'
|
2022-05-29 07:18:57 -05:00
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
2021-12-21 20:22:58 +01:00
|
|
|
ports:
|
|
|
|
- 3333:3333
|
2023-05-08 20:13:45 +02:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2021-12-21 20:22:58 +01:00
|
|
|
|
2021-10-30 12:54:14 -04:00
|
|
|
postgres:
|
|
|
|
image: postgres:12
|
|
|
|
env_file:
|
|
|
|
- ../.env
|
2023-05-08 20:13:45 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2021-10-30 12:54:14 -04:00
|
|
|
volumes:
|
|
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: 'redis:alpine'
|
2023-05-08 20:13:45 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2021-10-30 12:54:14 -04:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|