-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
55 lines (52 loc) · 1.85 KB
/
Copy pathcompose.yml
File metadata and controls
55 lines (52 loc) · 1.85 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
services:
web:
# 拉取走 Azure 上的 ghcr.io pull-through cache(阿里云直连 ghcr 不稳)。
# 镜像源头仍是 ghcr.io/shenxianovo/homepage,由 registry.shenxianovo.com 回源缓存。
image: registry.shenxianovo.com/shenxianovo/homepage:latest
# For local builds instead of pulling from the cache, comment out `image` above
# and uncomment the build block below:
# build:
# context: .
# dockerfile: Dockerfile
container_name: homepage
restart: unless-stopped
# Host nginx reverse-proxies to this port. Bind to localhost only so the
# container is not exposed directly on the public interface.
ports:
- "3000:3000"
environment:
NODE_ENV: production
# When Umami is enabled, point the client at the public analytics URL:
# NEXT_PUBLIC_UMAMI_URL: https://analytics.example.com
# NEXT_PUBLIC_UMAMI_WEBSITE_ID: 00000000-0000-0000-0000-000000000000
# --- Analytics (self-hosted Umami). Uncomment to enable. ---
# umami:
# image: ghcr.io/umami-software/umami:postgresql-latest
# container_name: umami
# restart: unless-stopped
# ports:
# - "3001:3000"
# environment:
# DATABASE_URL: postgresql://umami:${UMAMI_DB_PASSWORD}@umami-db:5432/umami
# DATABASE_TYPE: postgresql
# APP_SECRET: ${UMAMI_APP_SECRET}
# depends_on:
# umami-db:
# condition: service_healthy
# umami-db:
# image: postgres:18-alpine
# container_name: umami-db
# restart: unless-stopped
# environment:
# POSTGRES_DB: umami
# POSTGRES_USER: umami
# POSTGRES_PASSWORD: ${UMAMI_DB_PASSWORD}
# volumes:
# - umami-db-data:/var/lib/postgresql/data
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
# interval: 10s
# timeout: 5s
# retries: 5
# volumes:
# umami-db-data: