File tree Expand file tree Collapse file tree 1 file changed +42
-1
lines changed
getting-started/installation Expand file tree Collapse file tree 1 file changed +42
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments