mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-11-29 16:09:49 +00:00
add croc
This commit is contained in:
1
croc/.env.example
Normal file
1
croc/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
CROC_PASS=pass1234
|
||||
7
croc/docker-compose.yml
Normal file
7
croc/docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
croc:
|
||||
image: schollz/croc:10
|
||||
ports:
|
||||
- "9009-9013:9009-9013"
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
@@ -67,6 +67,7 @@
|
||||
- prometheus/prometheus
|
||||
- grafana/grafana
|
||||
- TryGhost/Ghost
|
||||
- schollz/croc
|
||||
|
||||
- size: full
|
||||
widgets:
|
||||
|
||||
19
main.sh
19
main.sh
@@ -63,6 +63,7 @@ generate_env_files() {
|
||||
cp --update=none ./ghost/.env.example ./ghost/.env
|
||||
cp --update=none ./immich/.env.example ./immich/.env
|
||||
cp --update=none ./uptime_kuma/.env.example ./uptime_kuma/.env
|
||||
cp --update=none ./croc/.env.example ./croc/.env
|
||||
cp --update=none ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
|
||||
# cp --update=none ./slash/.env.example ./slash/.env
|
||||
# cp --update=none ./grafana/.env.example ./grafana/.env
|
||||
@@ -192,6 +193,15 @@ start_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting croc..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./croc/docker-compose.yml up -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Croc started successfully."
|
||||
else
|
||||
print_error "failed to start Croc!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting caddy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -320,6 +330,15 @@ stop_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping croc..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./croc/docker-compose.yml down
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Croc stopped successfully."
|
||||
else
|
||||
print_error "failed to stop Croc!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping caddy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml down
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user