Skip to content

Instantly share code, notes, and snippets.

@gpilla
gpilla / gist:0af604c580b408713e274bf9ae4ed378
Created April 20, 2023 22:18
ejemplo de docker-compose mysql
version: '2'
services:
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: 'test_pass' # TODO: Change this
MYSQL_USER: 'test'
MYSQL_PASS: 'pass'
volumes:
- my-datavolume:/var/lib/mysql
version: '3.8'
services:
node:
image: node:latest
container_name: node
volumes:
- node_data:/app
ports:
- "3000:3000"
version: "3.1"
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
restart: always
volumes:
- gitlab_data_nfs:/var/opt/gitlab
- gitlab_logs_nfs:/var/log/gitlab
- gitlab_config_nfs:/config:/etc/gitlab
environment:
version: '3'
services:
reverse-proxy:
image: traefik:v2.2
command:
- --api.insecure=true
- --api.dashboard=true
- --providers.docker=true
- --providers.docker.swarmMode=true
int luzValue = 0;
int tempValue = 0;
int humeValue = 0;
float temperatura;
int luz;
int humedad;
int regarPin = 2;
int sensorHumedad = A5;
@gpilla
gpilla / enable-apache2-mods.sh
Last active February 9, 2016 04:31
Apache Performance Conf
#!/bin/bash
a2enmod deflate
a2enmod mime
a2enmod expires
a2enmod headers
@gpilla
gpilla / 11-apache-filter.conf
Last active March 13, 2018 19:20
Logstash configuration for parsing PHP errors on Apache Log
filter {
if [type] == "apache_access" {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
}
<?php
// Just testing gist.
echo "something";
// Olvidence, todos las pruebas que haga las tengo que pasar a esto.