Skip to content

Commit 6d121be

Browse files
svenvg93gitbook-bot
authored andcommitted
GitBook: No commit message
1 parent bffc8fe commit 6d121be

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

getting-started/installation/using-docker-compose.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,48 @@ volumes:
148148
{% endtab %}
149149
150150
{% tab title="Postgres" %}
151-
151+
```yaml
152+
services:
153+
speedtest-tracker:
154+
image: lscr.io/linuxserver/speedtest-tracker:latest
155+
restart: unless-stopped
156+
container_name: speedtest-tracker
157+
ports:
158+
- 8080:80
159+
- 8443:443
160+
environment:
161+
- PUID=
162+
- PGID=
163+
- APP_KEY=
164+
- DB_CONNECTION=pgsql
165+
- DB_HOST=db
166+
- DB_PORT=5432
167+
- DB_DATABASE=speedtest_tracker
168+
- DB_USERNAME=speedtest_tracker
169+
- DB_PASSWORD=password
170+
volumes:
171+
- /path/to/data:/config
172+
- /path/to-custom-ssl-keys:/config/keys
173+
depends_on:
174+
- db
175+
db:
176+
image: postgres:18
177+
restart: always
178+
environment:
179+
- POSTGRES_DB=speedtest_tracker
180+
- POSTGRES_USER=speedtest_tracker
181+
- POSTGRES_PASSWORD=password
182+
- PGDATA=/var/lib/postgresql/data/
183+
volumes:
184+
- speedtest-db:/var/lib/postgresql/data
185+
healthcheck:
186+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
187+
interval: 10s
188+
retries: 5
189+
timeout: 5s
190+
volumes:
191+
speedtest-db:
192+
```
152193
{% endtab %}
153194
{% endtabs %}
154195

0 commit comments

Comments
 (0)