Repository navigation
Expand file tree
/
Copy pathdocker-compose.setup.yml
More file actions
50 lines (46 loc) · 2.52 KB
/
Copy pathdocker-compose.setup.yml
File metadata and controls
50 lines (46 loc) · 2.52 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
# Setup overlay — apply ONLY for the first `up` (initial provisioning).
#
# Seafile reads these INIT_* vars on first boot to seed the admin account and to
# create its databases/users (using the MySQL root password); Navidrome reads its
# admin password the same way. After that they are ignored — so they are kept OUT of the base file's long-running `environment:`,
# where they would otherwise sit in `docker inspect pc-seafile` forever. They are
# supplied here, transiently, and resolved from the SETUP env file (.env.setup /
# .env.production.setup) which Compose does NOT load at runtime.
#
# First-time provisioning (local):
# docker compose -f docker-compose.yml -f docker-compose.storagebox-sim.yml \
# -f docker-compose.setup.yml --env-file .env --env-file .env.setup up -d
# First-time provisioning (production):
# docker compose -f docker-compose.yml -f docker-compose.production.yml \
# -f docker-compose.setup.yml \
# --env-file /root/.env.production --env-file /root/.env.production.setup up -d
#
# Day-to-day `up` omits this overlay (and the setup env file); the next plain
# `docker compose up -d` recreates seafile-server with a clean, admin-free env.
name: private-cloud
services:
seafile-server:
environment:
# First admin account, created on Seafile's first start (used by the apps).
INIT_SEAFILE_ADMIN_EMAIL: ${SEAFILE_ADMIN_EMAIL}
INIT_SEAFILE_ADMIN_PASSWORD: ${SEAFILE_ADMIN_PASSWORD}
# Root password used once to create the seafile DBs/users on first boot.
INIT_SEAFILE_MYSQL_ROOT_PASSWORD: ${SEAFILE_DB_ROOT_PASSWORD}
vaultwarden:
environment:
# Vaultwarden seeds no admin from env (registration is the only path to a
# first account), so for the initial `up` open signups AND turn the web
# vault UI back on, long enough to register your account in a browser at
# the vault URL. The base file keeps both at their hardened runtime
# defaults (SIGNUPS_ALLOWED=false, WEB_VAULT_ENABLED=false), so the next
# plain `docker compose up -d` — which omits this overlay — closes signups
# and returns Vaultwarden to API-only.
SIGNUPS_ALLOWED: "true"
WEB_VAULT_ENABLED: "true"
navidrome:
environment:
# Creates the admin "admin" with this password, only while the database has
# never been set up; this closes the open first-user page. Navidrome logs
# the password once when it does; the log goes with the container on the
# next plain `up`.
ND_DEVAUTOCREATEADMINPASSWORD: ${NAVIDROME_ADMIN_PASSWORD}