mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-11-29 16:09:49 +00:00
Compare commits
2 Commits
905fa852a5
...
4a02405e06
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a02405e06 | |||
| 57f4fbe9f3 |
@@ -6,9 +6,11 @@ networks:
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.10.2-alpine
|
||||
image: caddy:2-alpine
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
networks:
|
||||
- caddy
|
||||
ports:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
services:
|
||||
croc:
|
||||
image: schollz/croc:10
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
ports:
|
||||
- "9009-9013:9009-9013"
|
||||
env_file: .env
|
||||
|
||||
@@ -9,6 +9,8 @@ services:
|
||||
image: ghost:6-alpine
|
||||
container_name: ghost
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
networks:
|
||||
- caddy
|
||||
environment:
|
||||
|
||||
@@ -8,8 +8,10 @@ networks:
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1.24.6
|
||||
image: gitea/gitea:1
|
||||
container_name: gitea
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
environment:
|
||||
- USER_UID=${USER_UID}
|
||||
- USER_GID=${USER_GID}
|
||||
@@ -27,7 +29,7 @@ services:
|
||||
memory: 1G
|
||||
|
||||
act:
|
||||
image: gitea/act_runner:0.2.11
|
||||
image: gitea/act_runner:0.2.13
|
||||
container_name: gitea_act
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
||||
@@ -10,9 +10,11 @@ networks:
|
||||
|
||||
services:
|
||||
grafana:
|
||||
image: grafana/grafana-enterprise:12.2.0
|
||||
image: grafana/grafana-enterprise:12.2
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
networks:
|
||||
- grafana
|
||||
- caddy
|
||||
|
||||
@@ -9,15 +9,15 @@ networks:
|
||||
services:
|
||||
immich-server:
|
||||
container_name: immich_server
|
||||
image: ghcr.io/immich-app/immich-server:v2.1.0
|
||||
image: ghcr.io/immich-app/immich-server:v2
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
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
|
||||
- ${UPLOAD_LOCATION}:/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "2283:2283"
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
@@ -36,6 +36,8 @@ services:
|
||||
immich-machine-learning:
|
||||
container_name: immich_machine_learning
|
||||
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
volumes:
|
||||
- model-cache:/cache
|
||||
env_file:
|
||||
|
||||
48
main.sh
48
main.sh
@@ -77,7 +77,7 @@ start_services() {
|
||||
docker network create gitea 2>/dev/null
|
||||
|
||||
echo "Starting prometheus..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./prometheus/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./prometheus/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Prometheus started successfully."
|
||||
else
|
||||
@@ -86,7 +86,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting Grafana..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./grafana/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./grafana/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Grafana started successfully."
|
||||
else
|
||||
@@ -95,7 +95,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting Gitea..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gitea/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gitea/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Gitea started successfully."
|
||||
else
|
||||
@@ -104,7 +104,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting gitea..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gitea/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gitea/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Gitea started successfully."
|
||||
else
|
||||
@@ -113,7 +113,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting memos..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./memos/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./memos/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Memos started successfully."
|
||||
else
|
||||
@@ -122,7 +122,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting sftpgo..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./sftpgo/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./sftpgo/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Sftpgo started successfully."
|
||||
else
|
||||
@@ -131,7 +131,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting slash..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./slash/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./slash/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Slash started successfully."
|
||||
else
|
||||
@@ -140,7 +140,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting vaultwarden..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./vaultwarden/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./vaultwarden/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Vaultwarden started successfully."
|
||||
else
|
||||
@@ -149,7 +149,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting wg-easy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./wg_easy/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./wg_easy/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Wg-easy started successfully."
|
||||
else
|
||||
@@ -158,7 +158,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting glance..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./glance/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./glance/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Glance started successfully."
|
||||
else
|
||||
@@ -167,7 +167,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting ghost..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./ghost/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./ghost/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Ghost started successfully."
|
||||
else
|
||||
@@ -176,7 +176,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting immich..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./immich/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./immich/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Immich started successfully."
|
||||
else
|
||||
@@ -185,7 +185,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting uptime kuma..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./uptime_kuma/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./uptime_kuma/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Uptime kuma started successfully."
|
||||
else
|
||||
@@ -194,7 +194,7 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting croc..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./croc/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./croc/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Croc started successfully."
|
||||
else
|
||||
@@ -203,13 +203,22 @@ start_services() {
|
||||
fi
|
||||
|
||||
echo "Starting caddy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up -d
|
||||
$DOCKER_COMPOSE_COMMAND -f ./caddy/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Caddy started successfully."
|
||||
else
|
||||
print_error "failed to start Caddy!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting watchtower..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./watchtower/docker-compose.yml up --pull -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Watchtower started successfully."
|
||||
else
|
||||
print_error "failed to start Watchtower!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
stop_services() {
|
||||
@@ -347,6 +356,15 @@ stop_services() {
|
||||
print_error "failed to stop Caddy!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping watchtower..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./watchtower/docker-compose.yml down
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Watchtower stopped successfully."
|
||||
else
|
||||
print_error "failed to stop Watchtower!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
networks:
|
||||
caddy:
|
||||
name: caddy
|
||||
driver: bridge
|
||||
external: true
|
||||
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:0.25
|
||||
container_name: memos
|
||||
volumes:
|
||||
- ./data/app:/var/opt/memos
|
||||
ports:
|
||||
- 5230:5230
|
||||
networks:
|
||||
- caddy
|
||||
16
memos/docker-compose.yml
Normal file
16
memos/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
networks:
|
||||
caddy:
|
||||
name: caddy
|
||||
driver: bridge
|
||||
external: true
|
||||
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:0.25
|
||||
container_name: memos
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
volumes:
|
||||
- ./data/app:/var/opt/memos
|
||||
networks:
|
||||
- caddy
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
- prometheus-data:/prometheus
|
||||
|
||||
node_exporter:
|
||||
image: quay.io/prometheus/node-exporter:v1.9.1
|
||||
image: quay.io/prometheus/node-exporter:v1.10.0
|
||||
container_name: node_exporter
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
@@ -37,7 +37,7 @@ services:
|
||||
- "/:/host:ro,rslave"
|
||||
|
||||
cadvisor:
|
||||
image: gcr.io/cadvisor/cadvisor:v0.49.1
|
||||
image: gcr.io/cadvisor/cadvisor:v0.52.1
|
||||
container_name: cadvisor
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -6,9 +6,11 @@ networks:
|
||||
|
||||
services:
|
||||
server:
|
||||
image: drakkan/sftpgo:v2.6.6
|
||||
image: drakkan/sftpgo:v2
|
||||
container_name: sftpgo
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
environment:
|
||||
- SFTPGO_COMMON_IDLE_TIMEOUT=${SFTPGO_COMMON_IDLE_TIMEOUT}
|
||||
- SFTPGO_COMMON_UPLOAD_MODE=${SFTPGO_COMMON_UPLOAD_MODE}
|
||||
|
||||
@@ -6,7 +6,7 @@ networks:
|
||||
|
||||
services:
|
||||
server:
|
||||
# image: yourselfhosted/slash:latest
|
||||
# image: yourselfhosted/slash:latest
|
||||
image: aykhans/slash:1.0.0-rc.0-e
|
||||
container_name: slash
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -17,3 +17,4 @@ services:
|
||||
labels:
|
||||
caddy: ${CADDY_DOMAIN}
|
||||
caddy.reverse_proxy: "* {{upstreams 3001}}"
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
|
||||
12
watchtower/docker-compose.yml
Normal file
12
watchtower/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
watchtower:
|
||||
image: nickfedor/watchtower:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command:
|
||||
- "--label-enable"
|
||||
- "--cleanup"
|
||||
- "--rolling-restart"
|
||||
- "--interval"
|
||||
- "600" # 10 minutes
|
||||
@@ -2,6 +2,8 @@ services:
|
||||
wg-easy:
|
||||
image: ghcr.io/wg-easy/wg-easy:15
|
||||
container_name: wg-easy
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
networks:
|
||||
caddy:
|
||||
interface_name: wgeth1
|
||||
|
||||
Reference in New Issue
Block a user