-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
88 lines (78 loc) · 1.98 KB
/
compose.yml
File metadata and controls
88 lines (78 loc) · 1.98 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: wisdom
include:
- services.compose.yml
services:
http-entrypoint:
image: docker.io/library/caddy:latest
restart: always
cap_add:
- NET_ADMIN
configs:
- source: caddy
target: /etc/caddy/Caddyfile
ports:
- ${HTTP_HOST:-127.0.0.1}:${HTTP_PORT:-8000}:80
db:
image: timescale/timescaledb-ha:pg16.4-ts2.16.1-all
restart: always
hostname: db
user: root
volumes:
- db-data:/home/postgres/pgdata/data
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD:?postgres password required}
- POSTGRES_DB=wisdom
healthcheck:
test: ["CMD-SHELL", "pg_isready", "--dbname=wisdom"]
interval: 30s
timeout: 15s
retries: 5
start_period: 30s
redis:
image: docker.io/library/redis:alpine
restart: always
hostname: redis
command: --save 30 1 --loglevel warning
healthcheck:
test: ["CMD-SHELL", "redis-cli | grep PONG"]
interval: 30s
timeout: 15s
retries: 5
start_period: 30s
frontend:
image: ghcr.io/wisdom-oss/frontend:${FRONTEND_VERSION:-latest}
hostname: frontend
restart: always
backend:
image: traefik:v3
hostname: backend
container_name: traefik
restart: unless-stopped
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.defaultRule=PathPrefix(`/api/{{ kebabcase .Name }}`)"
- "--entryPoints.api.address=:80"
- "--entryPoints.api.forwardedHeaders.insecure"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
object-storage:
image: minio/minio
hostname: minio
container_name: minio
restart: unless-stopped
volumes:
- s3-data:/data
environment:
- MINIO_ROOT_USER=${MINIO_USER:?minio user required}
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD:?minio password required}
configs:
caddy:
file: ./configs/Caddyfile
volumes:
db-data:
name: wisdom-db
s3-data:
name: s3-data
...