mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-11-29 16:09:49 +00:00
Compare commits
3 Commits
8487de2298
...
905fa852a5
| Author | SHA1 | Date | |
|---|---|---|---|
| 905fa852a5 | |||
| 3cd3b692c1 | |||
| dd6fcdedd1 |
@@ -22,11 +22,13 @@ Create `.env` configuration files with the following command:
|
|||||||
Edit the generated `.env` files to fill in the required fields:
|
Edit the generated `.env` files to fill in the required fields:
|
||||||
|
|
||||||
- `./gitea/.env`
|
- `./gitea/.env`
|
||||||
- `./searxng/.env`
|
|
||||||
- `./sftpgo/.env`
|
- `./sftpgo/.env`
|
||||||
- `./vaultwarden/.env`
|
- `./vaultwarden/.env`
|
||||||
- `./wg_easy/.env`
|
- `./glance/.env`
|
||||||
- `./ghost/.env`
|
- `./ghost/.env`
|
||||||
|
- `./immich/.env`
|
||||||
|
- `./uptime_kuma/.env`
|
||||||
|
- `./croc/.env`
|
||||||
- `./caddy/.env`
|
- `./caddy/.env`
|
||||||
- `./caddy/Caddyfile.private`
|
- `./caddy/Caddyfile.private`
|
||||||
|
|
||||||
|
|||||||
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
|
- prometheus/prometheus
|
||||||
- grafana/grafana
|
- grafana/grafana
|
||||||
- TryGhost/Ghost
|
- TryGhost/Ghost
|
||||||
|
- schollz/croc
|
||||||
|
|
||||||
- size: full
|
- size: full
|
||||||
widgets:
|
widgets:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ networks:
|
|||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: ghcr.io/immich-app/immich-server:v1.143.1
|
image: ghcr.io/immich-app/immich-server:v2.1.0
|
||||||
volumes:
|
volumes:
|
||||||
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
||||||
- ${UPLOAD_LOCATION}:/data
|
- ${UPLOAD_LOCATION}:/data
|
||||||
|
|||||||
19
main.sh
19
main.sh
@@ -63,6 +63,7 @@ generate_env_files() {
|
|||||||
cp --update=none ./ghost/.env.example ./ghost/.env
|
cp --update=none ./ghost/.env.example ./ghost/.env
|
||||||
cp --update=none ./immich/.env.example ./immich/.env
|
cp --update=none ./immich/.env.example ./immich/.env
|
||||||
cp --update=none ./uptime_kuma/.env.example ./uptime_kuma/.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 ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
|
||||||
# cp --update=none ./slash/.env.example ./slash/.env
|
# cp --update=none ./slash/.env.example ./slash/.env
|
||||||
# cp --update=none ./grafana/.env.example ./grafana/.env
|
# cp --update=none ./grafana/.env.example ./grafana/.env
|
||||||
@@ -192,6 +193,15 @@ start_services() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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..."
|
echo "Starting caddy..."
|
||||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
|
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@@ -320,6 +330,15 @@ stop_services() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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..."
|
echo "Stopping caddy..."
|
||||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml down
|
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml down
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v3.6.0
|
image: prom/prometheus:v3.7.2
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
uptime-kuma:
|
uptime-kuma:
|
||||||
image: louislam/uptime-kuma:1
|
image: louislam/uptime-kuma:2
|
||||||
container_name: uptime_kuma
|
container_name: uptime_kuma
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user