first commit

This commit is contained in:
2024-06-03 18:43:35 +02:00
parent 2da01a3f6e
commit f501d519af
883 changed files with 71550 additions and 2 deletions

1
dockers/castopod/.env Symbolic link
View File

@ -0,0 +1 @@
../../config/dockers.env

View File

@ -0,0 +1,55 @@
services:
app:
image: castopod/castopod:latest
container_name: ${castopodServName}
volumes:
- castopodMedia:/var/www/castopod/public/media
environment:
CP_BASEURL: "https://${castopodHost}.${domain}"
CP_ANALYTICS_SALT: qldsgfliuzrbhgmkjbdbmkvb
VIRTUAL_PORT: 8000
CP_CACHE_HANDLER: redis
CP_REDIS_HOST: redis
env_file:
- ../../secret/env-${castopodServName}
- ../../secret/env-${castopodDBName}
networks:
- castopodNet
expose:
- 8000
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.${castopodServName}.rule=Host(`${castopodHost}.${domain}`)"
- "traefik.docker.network=castopodNet"
mariadb:
image: mariadb:10.5
container_name: ${castopodDBName}
networks:
- castopodNet
volumes:
- castopodDb:/var/lib/mysql
env_file:
- ../../secret/env-${castopodDBName}
restart: unless-stopped
redis:
image: redis:7.0-alpine
container_name: castopodCache
volumes:
- castopodCache:/data
networks:
- castopodNet
command: --requirepass ${castopodRedisPassword}
volumes:
castopodMedia:
castopodDb:
castopodCache:
networks:
castopodNet:
external: true
name: castopodNet

13
dockers/castopod/first.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
setKazVars
cd $(dirname $0)
. "${DOCKERS_ENV}"
. "${KAZ_KEY_DIR}/SetAllPass.sh"
"${KAZ_BIN_DIR}/gestContainers.sh" --install -M -castopod