diff --git a/DOCKER_FILES/unifi-server/Dockerfile b/DOCKER_FILES/unifi-server/Dockerfile new file mode 100644 index 0000000..ae5a5d6 --- /dev/null +++ b/DOCKER_FILES/unifi-server/Dockerfile @@ -0,0 +1,15 @@ +# Use an existing base image +FROM ubuntu:latest + +# Set the working directory in the container +WORKDIR /app + +# Copy application files from host to container +COPY . . + +# Install dependencies +RUN apt-get update && apt-get install -y \ + podman + +# Set the default command to execute when the container starts +#CMD ["python3", "app.py"] \ No newline at end of file diff --git a/PHP56_e_MySQL/README.md b/PHP56_e_MySQL/README.md new file mode 100644 index 0000000..4d22694 --- /dev/null +++ b/PHP56_e_MySQL/README.md @@ -0,0 +1,5 @@ +# PHP5.6 e MySQL + +## Cose interessanti +1. si può accedere alle variabile di ambiente del container con PHP facendo + `````` \ No newline at end of file diff --git a/PHP56_e_MySQL/docker_compose.yaml b/PHP56_e_MySQL/docker_compose.yaml new file mode 100644 index 0000000..a44b2cd --- /dev/null +++ b/PHP56_e_MySQL/docker_compose.yaml @@ -0,0 +1,42 @@ +version: '3.5' +services: + mysql: + container_name: db + image: mysql:5.7.9 + ports: + - "3306:3306" + volumes: + - ./db:/var/lib/mysql + environment: + MYSQL_ALLOW_EMPTY_PASSWORD: "no" + MYSQL_ROOT_PASSWORD: "MYSQL_ROOT_PASSWORD" + MYSQL_DATABASE: "MYSQL_DB" + restart: 'unless-stopped' + healthcheck: + test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] + timeout: 10s + retries: 5 + PHP56: + image: porchn/php5.6-apache + container_name: php56 + ports: + - "8888:80" + volumes: + - ./apache2/www:/var/www + - ./apache2/logs:/var/log/apache2 + networks: + default: + ipv4_address: 172.10.0.3 + environment: + - TZ=Europe/Rome + restart: 'unless-stopped' + depends_on: + mysql: + condition: service_healthy +networks: + default: + driver: bridge + ipam: + config: + - subnet: 172.10.0.0/24 + gateway: 172.10.0.1 \ No newline at end of file diff --git a/PHP56_e_MySQL/dockerfile.yaml b/PHP56_e_MySQL/dockerfile.yaml new file mode 100644 index 0000000..e69de29 diff --git a/UNIFI/con mongo 4/README.md b/UNIFI/con mongo 4/README.md new file mode 100644 index 0000000..082387c --- /dev/null +++ b/UNIFI/con mongo 4/README.md @@ -0,0 +1 @@ +//https://github.com/jacobalberty/unifi-docker \ No newline at end of file diff --git a/UNIFI/con mongo 4/docker_compose.yaml b/UNIFI/con mongo 4/docker_compose.yaml new file mode 100644 index 0000000..a6f627a --- /dev/null +++ b/UNIFI/con mongo 4/docker_compose.yaml @@ -0,0 +1,14 @@ +version: '3.5' +services: + unifi: + container_name: unifi + image: jacobalberty/unifi + ports: + - 8080:8080 + - 8443:8443 + - 3478:3478/udp + volumes: + - ./data:/unifi + environment: + - TZ=Europe/Rome + restart: unless-stopped \ No newline at end of file diff --git a/UNIFI/con mongo 7 b/UNIFI/con mongo 7 new file mode 100644 index 0000000..e69de29