-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
83 lines (83 loc) · 3.08 KB
/
Copy pathcompose.yaml
File metadata and controls
83 lines (83 loc) · 3.08 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
# Invito — development Docker Compose
#
# Services:
# dex OIDC provider → http://localhost:5556
# nextcloud CalDAV server → http://localhost:8081
# mailpit SMTP catch-all → http://localhost:8025 (web UI)
#
# Quick start (macOS + Docker Desktop — no extra setup needed):
#
# make up
#
# Then open http://localhost:8080 and sign in with:
# admin@example.com / password
#
# Add a CalDAV calendar in the dashboard:
# URL: http://localhost:8081/remote.php/dav/principals/users/admin
# User: admin
# Password: admin
#
# All outgoing mail is caught by Mailpit at http://localhost:8025.
name: invito-dev
services:
# ── Dex ─────────────────────────────────────────────────────────────────────
dex:
image: ghcr.io/dexidp/dex:v2.45.1@sha256:8499afd690c437f52301efd2b05b2455da5bd2dfc20332cd697dc9937f808462
command: dex serve /etc/dex/config.yaml
ports:
- "5556:5556"
volumes:
- ./dev/dex/config.yaml:/etc/dex/config.yaml:ro
- dex-data:/var/dex
networks:
- invito
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:5556/healthz"]
interval: 5s
timeout: 3s
retries: 10
# ── Nextcloud ────────────────────────────────────────────────────────────────
nextcloud:
image: nextcloud:33-apache@sha256:90a730e9a3dd290d9626ca64740c4d2fa901b4f231fe4ab6eb0dcf300dbc7271
ports:
- "8081:80"
environment:
NEXTCLOUD_ADMIN_USER: admin
NEXTCLOUD_ADMIN_PASSWORD: admin
NEXTCLOUD_TRUSTED_DOMAINS: "nextcloud localhost 127.0.0.1"
volumes:
- nextcloud-data:/var/www/html
networks:
- invito
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost/status.php"]
interval: 10s
timeout: 5s
retries: 20
start_period: 60s # Nextcloud takes a while on first run
# ── Mailpit (SMTP catch-all) ─────────────────────────────────────────────────
mailpit:
image: axllent/mailpit:latest@sha256:98b916bd3c8d61f7633a52d3ea2f58d00620cb01ca57ab59edde68c347a95365
ports:
- "8025:8025" # web UI
- "1025:1025" # SMTP (no auth required)
networks:
- invito
restart: unless-stopped
# ── MkDocs (documentation) ───────────────────────────────────────────────────
docs:
image: squidfunk/mkdocs-material:latest@sha256:868ad4d39fb5865b72d00173ade00f4eae2b38dde7ff790a011cc44ce4a8ff8e
command: serve --dev-addr=0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/docs
profiles:
- docs
networks:
invito:
volumes:
dex-data:
nextcloud-data: