inital version

This commit is contained in:
2024-06-25 00:32:27 +02:00
parent 92e1912a8d
commit e6dfa15cfc
3 changed files with 79 additions and 2 deletions

2
.env.sample Normal file
View File

@@ -0,0 +1,2 @@
BASEDIR=
INTRANET=

View File

@@ -1,3 +1,52 @@
# compose-homepage
# Homepage Dashboard
* can be run on single node setup or in swarm
Homepage Dashboard
## howto
### single node
#### start container
```bash
docker compose up -d
```
#### stop container (and remove)
```bash
docker compose down
```
#### view logs
```bash
docker compose logs -f
```
#### reload config
```bash
docker compose restart
```
### swarm
#### start aka deploy
hint: drone fails to start until git auth source is created and set in vars
```bash
docker stack deploy -c docker-compose.yml homepage
```
#### stop container aka service
```bash
docker stack rm homepage
```
#### view logs
```bash
docker service logs homepage -f
```
#### reload config (no downtime if replica 2 or more)
```bash
docker service update hoempage --force
```
## example caddy config
```
git.example.com {
reverse_proxy homepage:3000
}

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
restart: unless-stopped
env_file:
- .env
ports:
- 3000:3000
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
update_config:
parallelism: 1
delay: 10s
volumes:
- ${basepath:-.}/files:/app/config
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
networks:
- backend
networks:
backend:
name: ${INTRANET:-backend}
external: true