feat: add local date in docker-compose files

This commit is contained in:
2025-07-12 17:10:20 +02:00
parent b9884d6560
commit fa1ee4dd64
13 changed files with 89 additions and 2 deletions

View File

@@ -3,6 +3,9 @@ services:
build: .
container_name: clima-app
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD-SHELL", "pgrep -f bot.py || exit 1"]
interval: 10s

View File

@@ -11,6 +11,9 @@ services:
- PGID=1000
- TZ=Europe/Madrid
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
bbdd:
condition: service_healthy
@@ -28,6 +31,9 @@ services:
ports:
- "3306:3306"
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p${MYSQL_ROOT_PASSWORD}"]
interval: 10s

View File

@@ -11,6 +11,8 @@ services:
- PGID=1000
- TZ=Europe/Madrid
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./movie2_bot_data:/app/db
- ./logs:/app/logs
restart: unless-stopped

View File

@@ -8,6 +8,8 @@ services:
ports:
- 127.0.0.1:${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${MONGODB_PATH:-./mongodb}:/data/db
# TODO: add auth
@@ -18,6 +20,9 @@ services:
build:
context: "."
dockerfile: Dockerfile
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- mongo
@@ -34,5 +39,8 @@ services:
- ME_CONFIG_MONGODB_AUTH_DATABASE=chatgpt_telegram_bot
- ME_CONFIG_BASICAUTH_USERNAME=${MONGO_EXPRESS_USERNAME:-username}
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGO_EXPRESS_PASSWORD:-password}
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- mongo

View File

@@ -9,6 +9,9 @@ services:
- ./.env
networks:
- ollama-net
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- ollama-api
@@ -16,6 +19,8 @@ services:
image: ollama/ollama:latest
container_name: ollama-server
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./ollama:/root/.ollama
networks:
- ollama-net

View File

@@ -23,6 +23,9 @@ services:
networks:
- tablamareas_network
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD-SHELL", "pgrep -f bot.py || exit 1"]
interval: 10s
@@ -41,9 +44,11 @@ services:
- .db.env
networks:
- tablamareas_network
volumes:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $POSTGRES_USER -d $POSTGRES_DB || exit 1"]
interval: 10s
@@ -62,6 +67,9 @@ services:
- tablamareas_network
restart: unless-stopped
command: redis-server --requirepass "$REDIS_PASSWORD"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s