mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-12-12 21:30:41 +05:30
refactor: use BACKEND_HOSTNAME env instead of ash entrypoint
This commit is contained in:
parent
bf44099e14
commit
ce2d77edfd
@ -9,8 +9,11 @@ rm -f docker-compose.yml
|
|||||||
|
|
||||||
cp -r template/ config/
|
cp -r template/ config/
|
||||||
|
|
||||||
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" config/*
|
conffiles=$(find config/ -type f ! -name '*.yml')
|
||||||
sed -i "s/BACKEND_HOSTNAME/$backend/g" config/*
|
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" $conffiles
|
||||||
sed -i "s/PROXY_HOSTNAME/$proxy/g" config/*
|
sed -i "s/BACKEND_HOSTNAME/$backend/g" $conffiles
|
||||||
|
sed -i "s/PROXY_HOSTNAME/$proxy/g" $conffiles
|
||||||
|
|
||||||
|
sed -i "s/BACKEND_HOSTNAME_PLACEHOLDER/$backend/g" config/*.yml
|
||||||
|
|
||||||
mv config/docker-compose.$reverseproxy.yml docker-compose.yml
|
mv config/docker-compose.$reverseproxy.yml docker-compose.yml
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pipedfrontend:
|
piped-frontend:
|
||||||
image: 1337kavin/piped-frontend:latest
|
image: 1337kavin/piped-frontend:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- piped
|
- piped
|
||||||
|
environment:
|
||||||
|
BACKEND_HOSTNAME: BACKEND_HOSTNAME_PLACEHOLDER
|
||||||
container_name: piped-frontend
|
container_name: piped-frontend
|
||||||
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
|
|
||||||
piped-proxy:
|
piped-proxy:
|
||||||
image: 1337kavin/piped-proxy:latest
|
image: 1337kavin/piped-proxy:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pipedfrontend:
|
piped-frontend:
|
||||||
image: 1337kavin/piped-frontend:latest
|
image: 1337kavin/piped-frontend:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- piped
|
- piped
|
||||||
|
environment:
|
||||||
|
BACKEND_HOSTNAME: BACKEND_HOSTNAME_PLACEHOLDER
|
||||||
container_name: piped-frontend
|
container_name: piped-frontend
|
||||||
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
|
|
||||||
piped-proxy:
|
piped-proxy:
|
||||||
image: 1337kavin/piped-proxy:latest
|
image: 1337kavin/piped-proxy:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user