initial commit
This commit is contained in:
15
DOCKER_FILES/unifi-server/Dockerfile
Normal file
15
DOCKER_FILES/unifi-server/Dockerfile
Normal file
@@ -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"]
|
||||
5
PHP56_e_MySQL/README.md
Normal file
5
PHP56_e_MySQL/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# PHP5.6 e MySQL
|
||||
|
||||
## Cose interessanti
|
||||
1. si può accedere alle variabile di ambiente del container con PHP facendo
|
||||
```<?php echo ('ENV' . getenv(NOMEVARIABILE) ); ?>```
|
||||
42
PHP56_e_MySQL/docker_compose.yaml
Normal file
42
PHP56_e_MySQL/docker_compose.yaml
Normal file
@@ -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
|
||||
0
PHP56_e_MySQL/dockerfile.yaml
Normal file
0
PHP56_e_MySQL/dockerfile.yaml
Normal file
1
UNIFI/con mongo 4/README.md
Normal file
1
UNIFI/con mongo 4/README.md
Normal file
@@ -0,0 +1 @@
|
||||
//https://github.com/jacobalberty/unifi-docker
|
||||
14
UNIFI/con mongo 4/docker_compose.yaml
Normal file
14
UNIFI/con mongo 4/docker_compose.yaml
Normal file
@@ -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
|
||||
0
UNIFI/con mongo 7
Normal file
0
UNIFI/con mongo 7
Normal file
Reference in New Issue
Block a user