-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 871 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
postgres:
image: postgis/postgis:16-3.4
environment:
POSTGRES_USER: tracker
POSTGRES_PASSWORD: tracker
POSTGRES_DB: tracker
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tracker"]
interval: 5s
timeout: 3s
retries: 5
ntfy:
image: binwiederhier/ntfy
command: serve
ports:
- "8091:80"
volumes:
- ntfy-cache:/var/cache/ntfy
tracker-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://tracker:tracker@postgres:5432/tracker?sslmode=disable
JWT_SECRET: dev-secret-change-me
PORT: "8080"
NTFY_URL: http://ntfy:80
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata:
ntfy-cache: