Skip to content

Commit b4a9b67

Browse files
authored
Add docker-compose examples based on existing docker run examples
1 parent fb36f53 commit b4a9b67

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

getting-started/installation.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,70 @@ docker run -d --name speedtest-tracker \
5959
```
6060
{% endtab %}
6161
{% endtabs %}
62+
63+
### Install with Docker Compose
64+
65+
{% tabs %}
66+
{% tab title="Docker (Sqlite)" %}
67+
```yaml
68+
version: '3.3'
69+
services:
70+
speedtest-tracker:
71+
container_name: speedtest-tracker
72+
ports:
73+
- '8443:443'
74+
environment:
75+
- PUID=1000
76+
- PGID=1000
77+
volumes:
78+
- '/path/to/directory:/config'
79+
image: 'ghcr.io/alexjustesen/speedtest-tracker:latest'
80+
```
81+
{% endtab %}
82+
83+
{% tab title="Docker (MariaDB/MySQL)" %}
84+
```yaml
85+
version: '3.3'
86+
services:
87+
speedtest-tracker:
88+
container_name: speedtest-tracker
89+
ports:
90+
- '8443:443'
91+
environment:
92+
- PUID=1000
93+
- PGID=1000
94+
- DB_CONNECTION=mysql
95+
- DB_HOST=
96+
- DB_PORT=3306
97+
- DB_DATABASE=speedtest_tracker
98+
- DB_USERNAME=
99+
- DB_PASSWORD=
100+
volumes:
101+
- '/path/to/directory:/config'
102+
image: 'ghcr.io/alexjustesen/speedtest-tracker:latest'
103+
```
104+
{% endtab %}
105+
106+
{% tab title="Docker (PostgreSQL)" %}
107+
```yaml
108+
version: '3.3'
109+
services:
110+
speedtest-tracker:
111+
container_name: speedtest-tracker
112+
ports:
113+
- '8443:443'
114+
environment:
115+
- PUID=1000
116+
- PGID=1000
117+
- DB_CONNECTION=pgsql
118+
- DB_HOST=
119+
- DB_PORT=5432
120+
- DB_DATABASE=speedtest_tracker
121+
- DB_USERNAME=
122+
- DB_PASSWORD=
123+
volumes:
124+
- '/path/to/directory:/config'
125+
image: 'ghcr.io/alexjustesen/speedtest-tracker:latest'
126+
```
127+
{% endtab %}
128+
{% endtabs %}

0 commit comments

Comments
 (0)