diff --git a/catch-all/05_infra_test/01_redis_flask_docker/docker-compose.yaml b/catch-all/05_infra_test/01_redis_flask_docker/docker-compose.yaml index 2c283c5..65a6f7f 100644 --- a/catch-all/05_infra_test/01_redis_flask_docker/docker-compose.yaml +++ b/catch-all/05_infra_test/01_redis_flask_docker/docker-compose.yaml @@ -8,6 +8,9 @@ services: - .env ports: - '5000:5000' + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro depends_on: - redis @@ -16,4 +19,7 @@ services: container_name: redis-python ports: - '6379:6379' + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro diff --git a/catch-all/05_infra_test/02_rabbitmq/docker-compose.yaml b/catch-all/05_infra_test/02_rabbitmq/docker-compose.yaml index f807b0c..b0be4de 100644 --- a/catch-all/05_infra_test/02_rabbitmq/docker-compose.yaml +++ b/catch-all/05_infra_test/02_rabbitmq/docker-compose.yaml @@ -7,6 +7,8 @@ services: - 5672:5672 - 15672:15672 volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ./rabbitmq/data/:/var/lib/rabbitmq/ - ./rabbitmq/log/:/var/log/rabbitmq # environment: diff --git a/catch-all/05_infra_test/03_kafka/docker-compose.yaml b/catch-all/05_infra_test/03_kafka/docker-compose.yaml index e7ccffb..2242c70 100644 --- a/catch-all/05_infra_test/03_kafka/docker-compose.yaml +++ b/catch-all/05_infra_test/03_kafka/docker-compose.yaml @@ -5,6 +5,8 @@ services: ports: - "2181:2181" volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - "zookeeper_data:/bitnami" environment: ALLOW_ANONYMOUS_LOGIN: "yes" @@ -23,6 +25,8 @@ services: ports: - "9092:9092" volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - "kafka_data:/bitnami" environment: KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9092,OUTSIDE://localhost:9093 @@ -53,6 +57,9 @@ services: KAFKA_BROKERCONNECT: kafka:9092 networks: - kafka-network + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro depends_on: kafka: condition: service_healthy @@ -69,6 +76,9 @@ services: context: ./producer-raw-recipes networks: - kafka-network + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro depends_on: kafdrop: condition: service_healthy @@ -90,6 +100,9 @@ services: context: ./producer-consumer-parse-recipes networks: - kafka-network + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro depends_on: kafdrop: condition: service_healthy @@ -112,6 +125,9 @@ services: context: ./consumer-notification networks: - kafka-network + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro depends_on: kafdrop: condition: service_healthy diff --git a/catch-all/05_infra_test/04_elastic_stack/docker-compose.yaml b/catch-all/05_infra_test/04_elastic_stack/docker-compose.yaml index 18aabad..471a448 100644 --- a/catch-all/05_infra_test/04_elastic_stack/docker-compose.yaml +++ b/catch-all/05_infra_test/04_elastic_stack/docker-compose.yaml @@ -11,6 +11,9 @@ services: - "9200:9200" networks: - elastic + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro kibana: image: docker.elastic.co/kibana/kibana:7.15.2 @@ -21,11 +24,16 @@ services: - "5601:5601" networks: - elastic + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro logstash: image: docker.elastic.co/logstash/logstash:7.15.2 container_name: logstash volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ./logstash-config/:/usr/share/logstash/pipeline/ environment: LS_JAVA_OPTS: "-Xmx256m -Xms256m" @@ -43,6 +51,9 @@ services: - elasticsearch networks: - elastic + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro python-app: build: @@ -50,6 +61,8 @@ services: dockerfile: Dockerfile container_name: python-app volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ./app:/app networks: - elastic diff --git a/catch-all/05_infra_test/05_prometheus_grafana/docker-compose.yaml b/catch-all/05_infra_test/05_prometheus_grafana/docker-compose.yaml index a5c1452..a3d019f 100644 --- a/catch-all/05_infra_test/05_prometheus_grafana/docker-compose.yaml +++ b/catch-all/05_infra_test/05_prometheus_grafana/docker-compose.yaml @@ -6,6 +6,8 @@ services: ports: - "9090:9090" volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml restart: unless-stopped networks: @@ -26,6 +28,9 @@ services: restart: unless-stopped networks: - monitoring-net + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro healthcheck: test: ["CMD", "wget", "--spider", "http://localhost:3000/api/health"] interval: 1m30s @@ -43,6 +48,9 @@ services: - "8080:8080" networks: - monitoring-net + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro command: ["python3", "app/main.py"] networks: diff --git a/catch-all/05_infra_test/06_sonarqube/docker-compose.yaml b/catch-all/05_infra_test/06_sonarqube/docker-compose.yaml index 1a6fa13..02710ea 100644 --- a/catch-all/05_infra_test/06_sonarqube/docker-compose.yaml +++ b/catch-all/05_infra_test/06_sonarqube/docker-compose.yaml @@ -10,6 +10,8 @@ services: - SONARQUBE_JDBC_PASSWORD=sonar - SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - sonarqube_data:/opt/sonarqube/data - sonarqube_logs:/opt/sonarqube/logs - sonarqube_extensions:/opt/sonarqube/extensions @@ -26,6 +28,8 @@ services: - discovery.type=single-node - ES_JAVA_OPTS=-Xms512m -Xmx512m volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - elasticsearch_data:/usr/share/elasticsearch/data networks: - sonarnet @@ -40,6 +44,8 @@ services: networks: - sonarnet volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - sonar_db:/var/lib/postgresql - sonar_db_data:/var/lib/postgresql/data @@ -49,6 +55,8 @@ services: depends_on: - sonarqube volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - .:/usr/src working_dir: /usr/src networks: diff --git a/catch-all/06_bots_telegram/04_clima_bot/docker-compose.yaml b/catch-all/06_bots_telegram/04_clima_bot/docker-compose.yaml index 289776a..2b3c5c4 100644 --- a/catch-all/06_bots_telegram/04_clima_bot/docker-compose.yaml +++ b/catch-all/06_bots_telegram/04_clima_bot/docker-compose.yaml @@ -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 diff --git a/catch-all/06_bots_telegram/06_movie_bot/docker-compose.yaml b/catch-all/06_bots_telegram/06_movie_bot/docker-compose.yaml index a016243..00dfa17 100644 --- a/catch-all/06_bots_telegram/06_movie_bot/docker-compose.yaml +++ b/catch-all/06_bots_telegram/06_movie_bot/docker-compose.yaml @@ -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 diff --git a/catch-all/06_bots_telegram/07_movie2_bot/docker-compose.yaml b/catch-all/06_bots_telegram/07_movie2_bot/docker-compose.yaml index dbb74a7..ce75a9d 100644 --- a/catch-all/06_bots_telegram/07_movie2_bot/docker-compose.yaml +++ b/catch-all/06_bots_telegram/07_movie2_bot/docker-compose.yaml @@ -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 diff --git a/catch-all/06_bots_telegram/08_chatgpt_bot/docker-compose.yml b/catch-all/06_bots_telegram/08_chatgpt_bot/docker-compose.yml index e8dee97..4ee0682 100644 --- a/catch-all/06_bots_telegram/08_chatgpt_bot/docker-compose.yml +++ b/catch-all/06_bots_telegram/08_chatgpt_bot/docker-compose.yml @@ -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 diff --git a/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml b/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml index 22999fd..00912b8 100644 --- a/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml +++ b/catch-all/06_bots_telegram/09_ollama_bot/docker-compose.yml @@ -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 diff --git a/catch-all/06_bots_telegram/10_mareas_bot/docker-compose.yaml b/catch-all/06_bots_telegram/10_mareas_bot/docker-compose.yaml index c42f61e..1abbf3b 100644 --- a/catch-all/06_bots_telegram/10_mareas_bot/docker-compose.yaml +++ b/catch-all/06_bots_telegram/10_mareas_bot/docker-compose.yaml @@ -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 diff --git a/catch-all/08_urlf4ck3r/docker-compose.yaml b/catch-all/08_urlf4ck3r/docker-compose.yaml index 8dd055d..9d38b98 100644 --- a/catch-all/08_urlf4ck3r/docker-compose.yaml +++ b/catch-all/08_urlf4ck3r/docker-compose.yaml @@ -5,5 +5,7 @@ services: dockerfile: Dockerfile command: ["-u", "https://vergaracarmona.es", "-o", "output.txt"] volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ./output:/app/output container_name: urlf4ck3r \ No newline at end of file