Skip to content

Commit

Permalink
Add fleet
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <[email protected]>
  • Loading branch information
bensuperpc committed Sep 8, 2024
1 parent 860be99 commit 6817b3d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DOCKER := docker
BLOG_SERVICES := wordpress
TORRENTS_SERVICES := qbittorrent transmission
SHARING_SERVICES := psitransfer picoshare privatebin projectsend jellyfin dufs gitea syncthing
ADMIN_SERVICES := yacht uptime-kuma adminer
ADMIN_SERVICES := yacht uptime-kuma adminer fleet
UTILS_SERVICES := it-tools stirlingpdf
# gitea-runner

Expand Down
4 changes: 4 additions & 0 deletions infrastructure/caddy/config/bensuperpc.org/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ stirlingpdf.bensuperpc.org {
reverse_proxy stirlingpdf:8080
}

fleet.bensuperpc.org {
reverse_proxy fleet:8080
}

link.bensuperpc.org {
# TODO: Use service with database
# Friendly links
Expand Down
48 changes: 48 additions & 0 deletions infrastructure/fleet/docker-compose.fleet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
services:
# fleet
fleet:
image: lscr.io/linuxserver/fleet:latest
container_name: fleet
profiles:
- fleet
restart: on-failure:5
depends_on:
- caddy
- fleet_db
env_file:
- ./fleet/env/fleet.env
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
volumes:
- fleet_config:/config
networks:
- infra-network
security_opt:
- no-new-privileges:true

fleet_db:
image: mariadb:latest
container_name: fleet_db
profiles:
- database
- fleet
depends_on:
- caddy
restart: on-failure:5
volumes:
- fleet_db:/var/lib/mysql:rw
env_file:
- ./fleet/env/fleet_db.env
command: '--default-authentication-plugin=mysql_native_password'
networks:
- infra-network
security_opt:
- no-new-privileges:true


volumes:
fleet_config:
name: fleet_config
fleet_db:
name: fleet_db
6 changes: 6 additions & 0 deletions infrastructure/fleet/env/fleet.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TZ=Etc/UTC
fleet_admin_authentication_type=DATABASE
fleet_database_url=jdbc:mariadb://fleet_db:3306/fleet
fleet_database_username=bensuperpc
fleet_database_password=BPE9L6A2splwp30fsrXVxjQ0ZIwkFqSh
fleet_admin_secret=Tpa5E3k3ZlF8j9gL5eYz8FXhJW85x66b
4 changes: 4 additions & 0 deletions infrastructure/fleet/env/fleet_db.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MARIADB_ROOT_PASSWORD=UUrKj9JGHh5lY0VwVcyT712DaoJ2ae5P
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=BPE9L6A2splwp30fsrXVxjQ0ZIwkFqSh
MARIADB_DATABASE=fleet
6 changes: 6 additions & 0 deletions infrastructure/homepage/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
description: Dufs
ping: dufs.bensuperpc.org
container: dufs
- fleet:
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/fleet.png
href: https://fleet.bensuperpc.org/
description: Fleet
ping: fleet.bensuperpc.org
container: fleet

- Utils:
- it-tools:
Expand Down

0 comments on commit 6817b3d

Please sign in to comment.