Compare commits

...

5 Commits

Author SHA1 Message Date
13213e4bf7 ajout app docker LAMP 2023-03-30 22:03:38 +00:00
43e8eb5911 typo ... 2023-02-03 13:56:12 +01:00
b24ef44c4a deplac. install goss 2023-02-03 13:45:22 +01:00
e195c6b4c7 pb mkzone 2023-02-03 13:22:46 +01:00
535675494a typo mkzone 2023-02-03 13:12:57 +01:00
4 changed files with 37 additions and 4 deletions

View File

@ -8,7 +8,7 @@ trap cleanup SIGINT SIGTERM ERR EXIT
# - ficher de zone inverse
#
version="1.1"
version="1.1a"
zone="domaine.lan"
slave=0
@ -54,6 +54,7 @@ zone "${zone}" {
zone "${zonerev}" {
type master;
file "/etc/bind/db.${zone}.rev"; # zone directe
};
EOT
else
@ -78,7 +79,7 @@ EOT
fi
}
mkzdirrect () {
mkzdirect () {
# fichier de zone directe
echo "Generation fichier de zone directe db.${zone} ..."
cat <<EOT > "db.${zone}"

View File

@ -3,6 +3,7 @@ set -eu
mondomaine=domaine.lan
apt-get install -y bind9 bind9-doc bind9-host
curl -fsSL https://goss.rocks/install |sh
wget -nc https://gitea.lyc-lecastel.fr/gadmin/vagrant/raw/branch/main/divers/bind/mkzone
bash mkzone "${mondomaine}"
cp db.${mondomaine}* /etc/bind
@ -14,7 +15,6 @@ host srv1
host srv2
host -t soa "${mondomaine}"
host -l "${mondomaine}"
curl -fsSL https://goss.rocks/install |sh
goss add command "host ${mondomaine}"
goss add command "host -t soa ${mondomaine}"
goss add command "host -t ns ${mondomaine}"

View File

@ -7,7 +7,7 @@ wget -nc https://gitea.lyc-lecastel.fr/gadmin/vagrant/raw/branch/main/divers/bin
bash mkzone -s "${mondomaine}"
cp named.conf.local /etc/bind
sudo named-checkconf /etc/bind/named.conf
sudo named-checkzone "${mondomaine}" "/etc/bind/db.${mondomaine}"
sudo named-checkzone "${mondomaine}" "/var/cache/bind/db.${mondomaine}"
sudo systemctl restart bind9
host srv1
host srv2

View File

@ -0,0 +1,32 @@
version: "3.9"
services:
php:
container_name: php
# image: php:apache
build: './php'
restart: always
ports:
- "8000:80"
volumes:
- ./code:/var/www/html
depends_on:
- db
env_file:
- .env
db:
container_name: db
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./db:/var/lib/mysql
- ./db-init:/docker-entrypoint-initdb.d
env_file:
- .env