Skip to content

Commit 2121650

Browse files
authored
Create setup-homepage.md
1 parent b482f37 commit 2121650

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.

0 commit comments

Comments
 (0)