first commit
This commit is contained in:
1
dockers/castopod/.env
Symbolic link
1
dockers/castopod/.env
Symbolic link
@ -0,0 +1 @@
|
||||
../../config/dockers.env
|
55
dockers/castopod/docker-compose.yml
Normal file
55
dockers/castopod/docker-compose.yml
Normal 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
13
dockers/castopod/first.sh
Executable 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
|
||||
|
||||
|
Reference in New Issue
Block a user