-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.coolify.yml
More file actions
71 lines (66 loc) · 2.2 KB
/
Copy pathdocker-compose.coolify.yml
File metadata and controls
71 lines (66 loc) · 2.2 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
# =============================================================================
# Docker Compose - Production / Coolify / Standalone
# =============================================================================
# Usage:
# docker compose -f docker-compose.coolify.yml up -d
#
# Für Coolify die Umgebungsvariablen im Coolify-Dashboard setzen.
#
# Routing-Modell (einheitlich): Browser ─▶ Frontend-Nginx ─▶ /api, /_/ ─▶
# PocketBase (intern). Nginx ist der einzige Eingang, PocketBase wird NICHT
# veröffentlicht. Coolifys Proxy terminiert TLS vor dem Frontend-Port.
# =============================================================================
name: ${STACK_NAME:-pocketbase-collab}
services:
pocketbase:
build:
context: ./pocketbase
args:
PB_VERSION: ${PB_VERSION:-0.39.4}
image: ${IMAGE_PB:-pocketbase-collab/pocketbase}:${PB_VERSION:-0.39.4}
container_name: ${STACK_NAME:-pocketbase-collab}_pocketbase
restart: unless-stopped
environment:
TZ: ${TIME_ZONE:-Etc/UTC}
DEMO_USER_EMAIL: ${DEMO_USER_EMAIL:-demo@example.com}
DEMO_USER_PASSWORD: ${DEMO_USER_PASSWORD:-demo1234}
# Superuser fürs Admin-Dashboard (/_/)
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@example.com}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-demoadmin1234}
volumes:
- pb_data:/pb/pb_data
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8090/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- internal
frontend:
build:
context: ./frontend
args:
VITE_PB_URL: "" # leer -> location.origin -> Nginx-Proxy
image: ${IMAGE_WEB:-pocketbase-collab/frontend}:${APP_VERSION:-latest}
container_name: ${STACK_NAME:-pocketbase-collab}_frontend
restart: unless-stopped
depends_on:
pocketbase:
condition: service_healthy
ports:
- "${APP_PORT:-8080}:80"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- internal
networks:
internal:
driver: bridge
volumes:
pb_data:
name: ${STACK_NAME:-pocketbase-collab}_pb_data