forked from jordanlambrecht/tracker-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 2.41 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: tracker-tracker
# ╔══════════════════════════════════════════════════════════╗
# ║ ║
# ║ Tracker Tracker ║
# ║ ║
# ╚══════════════════════════════════════════════════════════╝
#
# Documentation: https://github.com/jordanlambrecht/tracker-tracker
services:
tracker-tracker-app:
image: ghcr.io/jordanlambrecht/tracker-tracker:latest
restart: unless-stopped
container_name: tracker-tracker-app
ports:
- "${PORT:-3000}:3000" # Smokey the Bear says: "Remember friends, you don't need to expose your port if it sits behind a reverse proxy!"
environment:
POSTGRES_HOST: tracker-tracker-db
# POSTGRES_PORT: ${POSTGRES_PORT} uncomment if you change the default port in the db service
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SESSION_SECRET: ${SESSION_SECRET}
TZ: ${TZ}
# LOG_LEVEL: ${LOG_LEVEL} # optional, defaults to 'info'
# LOG_FILE: /data/logs/tracker-tracker.log # optional
BASE_URL: ${BASE_URL:-} # optional, i.e https://trackertracker.example.com
# SECURE_COOKIES: ${SECURE_COOKIES:-} # set to 'true' if serving over HTTPS
volumes:
- ./data:/data
depends_on:
tracker-tracker-db:
condition: service_healthy
tracker-tracker-db:
image: postgres:18-alpine
restart: unless-stopped
container_name: tracker-tracker-db
environment:
POSTGRES_DB: tracker_tracker
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# POSTGRES_PORT: ${POSTGRES_PORT} uncomment if you want to customize
volumes:
- pgdata:/var/lib/postgresql # Don't ever put a database on a network drive
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf:ro # Needed for loading fancy PG18-specific optimizations
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"] # ^Same
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata: