diff --git a/.gitignore b/.gitignore index 73aeb638c..485ce3895 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .trash/ .DS_Store **/.obsidian/ +.postgres .idea .nuxt diff --git a/services/telegram-bot/docker-compose.yaml b/services/telegram-bot/docker-compose.yaml index c98f6d187..d1e112482 100644 --- a/services/telegram-bot/docker-compose.yaml +++ b/services/telegram-bot/docker-compose.yaml @@ -8,3 +8,10 @@ services: environment: POSTGRES_DATABASE: postgres POSTGRES_PASSWORD: '123456' + volumes: + - ./.postgres/data:/var/lib/postgresql/data + healthcheck: + test: [CMD-SHELL, pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER] + interval: 10s + timeout: 5s + retries: 5