Skip to content

Commit ab68d7e

Browse files
committed
chore: Setup docker env for local builds using example file
1 parent 09b2403 commit ab68d7e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.env.docker.example

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Build
2+
LOCAL_BUILD=true
3+
IMAGE_TAG=local
4+
5+
# Gluetun
6+
SERVER_COUNTRIES=
7+
VPN_SERVICE_PROVIDER=
8+
WIREGUARD_PRIVATE_KEY=
9+
WIREGUARD_ADDRESSES=
10+
SERVER_HOSTNAMES=
11+
12+
# Config variables
13+
#FPMPORT=9900
14+
15+
#REDIS_HOST=m3u-editor-redis
16+
#REDIS_SERVER_PORT=36790
17+
18+
#M3U_PROXY_API_TOKEN=changeme
19+
#M3U_PROXY_HOST=127.0.0.1
20+
#M3U_PROXY_PORT=38085
21+
#M3U_PROXY_PUBLIC_URL=http://localhost:36400/m3u-proxy
22+
23+
#PG_HOST=m3u-editor-postgres
24+
#PG_PORT=54320
25+
#PG_DATABASE=m3ue
26+
#PG_USER=m3ue
27+
#PG_PASSWORD=m3ue

rebuild.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ ENV_FILE=".env.docker"
66
FULL_COMPOSE="docker-compose.full.yml"
77
VPN_COMPOSE="docker-compose.full-gluetun.yml"
88

9+
# Ensure .env.docker exists (copy from .env.example if missing)
10+
ENV_FILE=".env.docker"
11+
if [ ! -f "${ENV_FILE}" ]; then
12+
echo "-- Missing environment file, creating now..."
13+
cp "${ENV_FILE}.example" "${ENV_FILE}"
14+
fi
15+
916
print_menu() {
1017
# print directly to the controlling terminal so the menu isn't captured
1118
# by command substitution that collects the function's stdout

0 commit comments

Comments
 (0)