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:
|
||||
|
||||
Reference in New Issue
Block a user