File tree Expand file tree Collapse file tree
programming-notes/homeserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Set up Homepage
2+
3+ <sub ><sup >Reference: [ Docker Installation] ( https://gethomepage.dev/installation/docker/ ) </sub ></sup >
4+
5+ Set up directory for configuration file, for instance
6+
7+ ``` bash
8+ cd ~ /server/configs/homepage
9+ ```
10+
11+ Create a ` docker-compose.yml ` file:
12+
13+ ``` bash
14+ nano docker-compose.yml
15+ ```
16+
17+ ``` bash
18+ services:
19+ homepage:
20+ image: ghcr.io/gethomepage/homepage:latest
21+ container_name: homepage
22+ ports:
23+ - 3000:3000
24+ volumes:
25+ - ' /home/${USER}/server/configs/homepage:/config' # Make sure your local config directory exists
26+ - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
27+ environment:
28+ HOMEPAGE_ALLOWED_HOSTS: hostname:XXXX # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
29+ ```
30+
31+ Start Docker container:
32+
33+ ``` bash
34+ docker compose up -d
35+ ```
36+
37+ Going to ` hostname:XXXX ` , you should see your homepage.
You can’t perform that action at this time.
0 commit comments