Repository navigation
Expand file tree
/
Copy pathhttpsms-pre-compose.yml
More file actions
106 lines (106 loc) · 2.92 KB
/
Copy pathhttpsms-pre-compose.yml
File metadata and controls
106 lines (106 loc) · 2.92 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: httpsms
POSTGRES_USER: httpsms
env_file:
- ./postgres.pre.env
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
volumes:
- redis:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
api:
build:
context: ../api
ports:
- "0.0.0.0:18000:8000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
env_file:
- ./api.pre.env
restart: unless-stopped
web:
build:
context: ../web
args:
API_BASE_URL: https://smsapi.yangdy.com
APP_URL: https://sms.yangdy.com
APP_NAME: httpSMS
APP_GITHUB_URL: https://github.com/NdoleStudio/httpsms
APP_DOCUMENTATION_URL: https://docs.httpsms.com
APP_DOWNLOAD_URL: https://sms.yangdy.com/HttpSms.apk
APP_ENV: production
FIREBASE_API_KEY: AIzaSyB_Ymoydr76Kesgfh4_UcA5Wk6rJlBP0cU
FIREBASE_AUTH_DOMAIN: httpsms-gw.firebaseapp.com
FIREBASE_PROJECT_ID: httpsms-gw
FIREBASE_STORAGE_BUCKET: httpsms-gw.firebasestorage.app
FIREBASE_MESSAGING_SENDER_ID: "87264986792"
FIREBASE_APP_ID: 1:87264986792:web:406ec7d78ca8975c1da49d
FIREBASE_MEASUREMENT_ID: G-5H1BPY7SBW
ports:
- "0.0.0.0:13000:3000"
depends_on:
api:
condition: service_started
viewer-bff:
condition: service_healthy
viewer-web:
condition: service_healthy
env_file:
- ./web.pre.env
restart: unless-stopped
viewer-bff:
build:
context: ../viewer/bff
dockerfile: Dockerfile
env_file:
- ./viewer.pre.env
extra_hosts:
- "passport.yangdy.com:host-gateway"
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health"]
interval: 10s
timeout: 3s
retries: 5
start_period: 30s
viewer-web:
build:
context: ../viewer/web
dockerfile: Dockerfile
args:
# Compose interpolation reads --env-file, not the web service's env_file.
VITE_TURNSTILE_SITE_KEY: ${CLOUDFLARE_TURNSTILE_SITE_KEY:-}
# Search is opt-in only after TRUSTED_PROXIES is configured and verified.
VITE_VIEWER_SEARCH_ENABLED: ${VIEWER_SEARCH_ENABLED:-false}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/viewer/"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
volumes:
redis:
postgres: