-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
112 lines (90 loc) · 4.05 KB
/
Copy path.env.example
File metadata and controls
112 lines (90 loc) · 4.05 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -----------------------------------------------------------------------------
# Docker environment example
# -----------------------------------------------------------------------------
# Copy this file to `.env` and replace every placeholder with your local values.
#
# This repository is safe to publish only if `.env` stays private:
# - never commit real API tokens
# - never commit real tunnel IDs
# - never commit production hostnames, emails, or passwords unless intentional
#
# Notes:
# - values are consumed by `docker-compose.yml`
# - Caddy and Cloudflare use the variables below for DNS challenge TLS
# - Cloudflared uses the tunnel and hostname variables
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# MySQL
# -----------------------------------------------------------------------------
# Database driver used by the application stack.
DB_CONNECTION=mysql
# MySQL host reachable from the app container or from your local machine.
DB_HOST=127.0.0.1
# Internal MySQL port used by the container.
DB_PORT=3306
# Port exposed on the host machine.
# Change it if port 3306 is already used locally.
FORWARD_DB_PORT=3306
# Default database name created by MySQL at startup.
DB_DATABASE=starter_app
# Application database user.
DB_USERNAME=user
# Application and root password currently reused by this compose file.
# Use a strong local password instead of a simple placeholder in real usage.
DB_PASSWORD=change_me_strong_password
# -----------------------------------------------------------------------------
# Redis
# -----------------------------------------------------------------------------
# Redis host reachable from the app container or from your local machine.
REDIS_HOST=127.0.0.1
# Redis password. Leave empty only if your local setup intentionally runs
# without Redis authentication.
REDIS_PASSWORD=
# Internal Redis port.
REDIS_PORT=6379
# Port exposed on the host machine.
FORWARD_REDIS_PORT=6379
# Redis client expected by the application.
REDIS_CLIENT=predis
# -----------------------------------------------------------------------------
# Caddy / Cloudflare
# -----------------------------------------------------------------------------
# Cloudflare API token used by Caddy for DNS challenge certificate issuance.
# Required when using:
# - wildcard certificates
# - automatic TLS through the Cloudflare DNS provider
#
# Scope this token as tightly as possible in Cloudflare.
CLOUDFLARE_API_TOKEN=replace_with_cloudflare_api_token
# Email address associated with the TLS / DNS automation account.
CLOUDFLARE_API_MAIL_PRIMARY=admin@example.com
# Secondary email variable referenced by docker-compose labels.
CLOUDFLARE_API_MAIL=admin@example.com
# Optional host port overrides for Caddy.
# Defaults are 80 and 443 if omitted by compose.
FORWARD_CADDY_PORT=80
FORWARD_CADDY_SSL_PORT=443
# -----------------------------------------------------------------------------
# Docker containers
# -----------------------------------------------------------------------------
# MySQL container name used by docker-compose.
DOCKER_DB_CONTAINER_NAME=mysql
# -----------------------------------------------------------------------------
# Linux user mapping inside containers
# -----------------------------------------------------------------------------
# UID / GID used to align file permissions with the host machine.
WWWGROUP=1000
WWWUSER=1000
# Absolute working directory expected inside the mounted container volume.
WWWWORKDIR=/srv/apps/starter
# -----------------------------------------------------------------------------
# Cloudflared tunnel / domains
# -----------------------------------------------------------------------------
# Cloudflare Tunnel UUID.
# Keep private if it maps to a real tunnel you control.
TUNNEL_UUID=00000000-0000-0000-0000-000000000000
# Primary domain served by Caddy / Cloudflared.
DOMAIN=oricode.com
# Hostname prefix used in `.docker/cloudflared/config/config.yml.template`.
# Example result: `ssh.example.com` or `gateway.example.com`
HOST_HOSTNAME=ssh