Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
This commit is contained in:
Alex Stan 2024-04-09 23:11:27 +03:00
parent 939f1bdf2a
commit 875856f214

View file

@ -33,7 +33,7 @@ services:
networks: networks:
- shonk - shonk
volumes: volumes:
- ./redis:/data - reddits:/data
healthcheck: healthcheck:
test: "redis-cli ping" test: "redis-cli ping"
interval: 5s interval: 5s
@ -41,7 +41,7 @@ services:
db: db:
restart: always restart: always
image: postgres:15-alpine image: postgres:15
command: >- command: >-
-c max_connections=200 -c max_connections=200
-c shared_buffers=512MB -c shared_buffers=512MB
@ -61,11 +61,19 @@ services:
env_file: env_file:
- .config/docker.env - .config/docker.env
volumes: volumes:
- ./db:/var/lib/postgresql/data # - ./db:/var/lib/postgresql/data
- datagays:/var/lib/postgresql/data
healthcheck: healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s interval: 5s
retries: 20 retries: 20
debinyan:
image: debian:latest
volumes:
- ./db:/data/db_orig
- datagays:/data/db
- ./redis.bak:/data/redis_orig
- reddits:/data/redis
# meilisearch: # meilisearch:
# restart: always # restart: always
@ -81,3 +89,8 @@ services:
networks: networks:
shonk: shonk:
volumes:
datagays:
reddits: