Skip to content

Commit ef27fe3

Browse files
committed
Normalize geowiki compose; sanitize .env.example
docker-compose.yml: - Rename docker-compopse.yml -> docker-compose.yml (filename typo) - IMAGE_VERSION env var for image tag - Fix network declaration order (external: true before name:) .env.example: - Remove real DATABASE_PASSWORD - Remove real LOCAL_ADMIN_PASSWORD and LOCAL_USER_PASSWORD; comment out local auth block (bypass-only, should not be set in production) - Fix broken first line (missing #) - Fix BACKUP_DATABASES_URLS typo -> BACKUP_DATABASE_URLS - Add SECRET_KEY_BASE, IMAGE_VERSION, DATABASE_URL - Use variable references in DATABASE_URL and BACKUP_DATABASE_URLS Add .rsync-exclude Made-with: Cursor
1 parent 8c7fe67 commit ef27fe3

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

apps/geowiki/.env.example

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ── Image version ─────────────────────────────────────────────────────────────
2+
#IMAGE_VERSION=latest
3+
4+
# ── Rails ─────────────────────────────────────────────────────────────────────
5+
RAILS_ENV=production
6+
PORT=3000
7+
8+
# Generate with: openssl rand -hex 64
9+
SECRET_KEY_BASE=
10+
11+
# Set to true to force HTTPS redirects (disable when behind SSL-terminating proxy)
12+
RAILS_FORCE_SSL=false
13+
# Set to true when running behind an SSL-terminating reverse proxy
14+
RAILS_ASSUME_SSL=false
15+
16+
# ── Database (connects via postgres-net) ──────────────────────────────────────
17+
DATABASE_USER=geowiki_user
18+
DATABASE_PASSWORD=
19+
DATABASE_NAME=geowiki_db
20+
DATABASE_HOST=postgresql
21+
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
22+
23+
# Used by db-backup to back up this service's database
24+
BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
25+
26+
# ── Authentication - Authentik OAuth2 (optional) ──────────────────────────────
27+
#AUTHENTIK_CLIENT_ID=
28+
#AUTHENTIK_CLIENT_SECRET=
29+
#AUTHENTIK_SITE=https://auth.pdxhackerspace.org
30+
31+
# ── Authentication - Local admin account (optional, bypasses OAuth) ────────────
32+
#LOCAL_ADMIN_EMAIL=admin@example.com
33+
#LOCAL_ADMIN_PASSWORD=
34+
#LOCAL_ADMIN_NAME=PDX Hackerspace Admin
35+
36+
# ── Authentication - Local user account (optional, bypasses OAuth) ─────────────
37+
#LOCAL_USER_EMAIL=member@example.com
38+
#LOCAL_USER_PASSWORD=
39+
#LOCAL_USER_NAME=PDX Hackerspace Member

apps/geowiki/.rsync-exclude

Whitespace-only changes.

apps/geowiki/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
services:
2+
geowiki:
3+
image: ghcr.io/romkey/pdxhackerspace-geowiki:${IMAGE_VERSION:-latest}
4+
container_name: geowiki
5+
hostname: geowiki
6+
restart: unless-stopped
7+
volumes:
8+
- ../../lib/geowiki:/app/storage
9+
- ../../log/geowiki:/app/log
10+
env_file:
11+
- .env
12+
networks:
13+
- db
14+
- proxy
15+
16+
networks:
17+
proxy:
18+
external: true
19+
name: nginx-proxy-net
20+
db:
21+
external: true
22+
name: postgres-net

0 commit comments

Comments
 (0)