You've already forked Curso-lenguaje-python
feat: add local date in docker-compose files
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user