update docker-compose.yml

* fixes mapping
This commit is contained in:
2025-03-05 10:10:22 +03:00
parent fd6215f6c1
commit 8b0ba9e284

View File

@@ -1,23 +1,24 @@
x-conf: &conf x-conf: &conf
environment: environment:
- TZ=Europe/Moscow TZ: Europe/Moscow
dns: restart: unless-stopped
- 9.9.9.9 dns:
networks: - 9.9.9.9
rss-proxy_net: networks:
- rss-proxy_net
services: services:
<<: *conf
proxy: proxy:
<<: *conf
image: registry.beaconborn.ru/bacon/rss-proxy:latest image: registry.beaconborn.ru/bacon/rss-proxy:latest
container_name: proxy container_name: proxy
ports: ports:
- "5050:5050" - 5050:5050
environment: environment:
- REDIS_URL=redis://redis:6379/0 REDIS_URL: redis://redis:6379/0
- CACHE_TTL=3600 CACHE_TTL: 3600
restart: unless-stopped depends_on:
depends_on: redis - redis
healthcheck: healthcheck:
test: [ "CMD", "python3", "/proxy/test.py" ] test: [ "CMD", "python3", "/proxy/test.py" ]
interval: 30s interval: 30s
@@ -25,12 +26,12 @@ services:
retries: 3 retries: 3
redis: redis:
<<: *conf
image: redis:latest image: redis:latest
container_name: redis container_name: redis
restart: unless-stopped
command: [ "redis-server" ] command: [ "redis-server" ]
ports: ports:
- "6379:6379" - 6379:6379
volumes: volumes:
- redis_data:/data - redis_data:/data
healthcheck: healthcheck: