Changes to automate backups.
This commit is contained in:
@@ -3,7 +3,7 @@ version: "3.9"
|
|||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
buehler-laravel:
|
buehler:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
@@ -11,14 +11,14 @@ volumes:
|
|||||||
services:
|
services:
|
||||||
buehler:
|
buehler:
|
||||||
image: cs-registry.ddnss.de/buehler/laravel-tmp:latest
|
image: cs-registry.ddnss.de/buehler/laravel-tmp:latest
|
||||||
container_name: buehler-laravel-app
|
container_name: buehler-app
|
||||||
restart: always
|
restart: always
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
working_dir: /var/www
|
working_dir: /var/www
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- buehler-laravel
|
- buehler
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.buehler.rule=Host(`buehler-kaffee.de`, `www.buehler-kaffee.de`)"
|
- "traefik.http.routers.buehler.rule=Host(`buehler-kaffee.de`, `www.buehler-kaffee.de`)"
|
||||||
@@ -34,14 +34,14 @@ services:
|
|||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:8
|
image: mysql:8
|
||||||
container_name: buehler-laravel-db
|
container_name: buehler-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- buehler-laravel
|
- buehler
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: 23lsdiuugkk6&7upz
|
MYSQL_ROOT_PASSWORD: jD99Ey8r2gyk5Bhe38eJgbu9c7Gps2mN
|
||||||
MYSQL_PASSWORD: lmaa,dw.
|
MYSQL_PASSWORD: hZp2796o4ks7boFyQX2ZU8EVoijbFVJQ
|
||||||
MYSQL_USER: buehler
|
MYSQL_USER: buehler
|
||||||
MYSQL_DATABASE: buehler-laravel
|
MYSQL_DATABASE: buehler
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ ADMIN_PASS=paE76zrCZfhA6Fbx1MUM
|
|||||||
|
|
||||||
APP_SECRET=gwot394*Gt
|
APP_SECRET=gwot394*Gt
|
||||||
|
|
||||||
DB_USER=kimai
|
DB_USER=scheidle
|
||||||
DB_NAME=kimai
|
DB_NAME=scheidle
|
||||||
DB_PASS=xXW5dnQoMpAmdXrQgUgU
|
DB_PASS=xXW5dnQoMpAmdXrQgUgU
|
||||||
|
DB_ROOT_PASS=3qmjWv5L4Q9fqxt3i6xsT8npoZy3HLc6
|
||||||
@@ -2,9 +2,9 @@ version: "3.9"
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
kimai-scheidle:
|
kimai-scheidle:
|
||||||
name: kimai-scheidle
|
name: scheidle
|
||||||
kimai-scheidle-db:
|
kimai-scheidle-db:
|
||||||
name: kimai-scheidle-db
|
name: scheidle-db
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
@@ -14,10 +14,10 @@ networks:
|
|||||||
external: false
|
external: false
|
||||||
|
|
||||||
services:
|
services:
|
||||||
kimai-scheidle:
|
scheidle-app :
|
||||||
image: kimai/kimai2:fpm
|
image: kimai/kimai2:fpm
|
||||||
container_name: kimai-scheidle
|
container_name: scheidle
|
||||||
hostname: kimai-scheidle
|
hostname: scheidle
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
ADMINMAIL: ${ADMIN_USER}
|
ADMINMAIL: ${ADMIN_USER}
|
||||||
@@ -26,16 +26,16 @@ services:
|
|||||||
TRUSTED_HOSTS: kimai.lan,kimai-web,localhost,127.0.0.1
|
TRUSTED_HOSTS: kimai.lan,kimai-web,localhost,127.0.0.1
|
||||||
APP_SECRET: ${APP_SECRET}
|
APP_SECRET: ${APP_SECRET}
|
||||||
depends_on:
|
depends_on:
|
||||||
- kimai-scheidle-db
|
- scheidle-db
|
||||||
networks:
|
networks:
|
||||||
- kimai-scheidle
|
- scheidle
|
||||||
volumes:
|
volumes:
|
||||||
- kimai-scheidle:/opt/kimai/public
|
- scheidle:/opt/kimai/public
|
||||||
|
|
||||||
kimai-scheidle-web:
|
scheidle-web:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: kimai-scheidle-web
|
container_name: scheidle-web
|
||||||
hostname: kimai-scheidle-web
|
hostname: scheidle-web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@@ -50,28 +50,28 @@ services:
|
|||||||
- "traefik.http.routers.kimai-scheidle-secure.service=kimai-scheidle-secure"
|
- "traefik.http.routers.kimai-scheidle-secure.service=kimai-scheidle-secure"
|
||||||
- "traefik.http.services.kimai-scheidle-secure.loadbalancer.server.port=80"
|
- "traefik.http.services.kimai-scheidle-secure.loadbalancer.server.port=80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- kimai-scheidle
|
- scheidle
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- kimai-scheidle
|
- scheidle
|
||||||
volumes:
|
volumes:
|
||||||
- kimai-scheidle:/opt/kimai/public:ro
|
- scheidle:/opt/kimai/public:ro
|
||||||
- ${PWD}/kimai.conf:/etc/nginx/conf.d/default.conf
|
- ${PWD}/kimai.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
kimai-scheidle-db:
|
kimai-scheidle-db:
|
||||||
image: mysql:8
|
image: mysql:8
|
||||||
container_name: kimai-scheidle-db
|
container_name: scheidle-db
|
||||||
hostname: kimai-scheidle-db
|
hostname: scheidle-db
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${DB_PASS}
|
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
||||||
MYSQL_USER: ${DB_USER}
|
MYSQL_USER: ${DB_USER}
|
||||||
MYSQL_PASSWORD: ${DB_PASS}
|
MYSQL_PASSWORD: ${DB_PASS}
|
||||||
MYSQL_DATABASE: ${DB_NAME}
|
MYSQL_DATABASE: ${DB_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- kimai-scheidle-db:/var/lib/mysql
|
- scheidle-db:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- kimai-scheidle
|
- scheidle
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "mysqladmin ping -u$${DB_USER} -p$$(DB_PASS)"]
|
test: ["CMD-SHELL", "mysqladmin ping -u$${DB_USER} -p$$(DB_PASS)"]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/index\.php(/|$) {
|
location ~ ^/index\.php(/|$) {
|
||||||
fastcgi_pass kimai-scheidle:9000;
|
fastcgi_pass scheidle-app:9000;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user